Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I've a web service created using PHP hosted on a linux box at https://www.xyz.com/service/service.php
The folder service has basic authentication enabled so requires username/password to access.
When I try to consume this web service using my .Net code as below.
[syntax="vbnet"]Private Sub btnSync_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSync.Click
Dim prototypeClient As New Prototype.PrototypeServer.PrototypeSoapServer()
prototypeClient.PreAuthenticate = True
prototypeClient.Credentials = New System.Net.NetworkCredential("abc", "xyz")
Dim xdoc As New Xml.XmlDocument
xdoc.Load("\Program Files\application\data.xml")
MsgBox(prototypeClient.syncData(xdoc.InnerXml) & " Record(s) synchronized")
End SubIt throws an exception saying ....
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.xyz.com/service/service.php?wsdl'
Can anyone please help me to overcome this issue?
Thanks in advance.
Regards.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]