In my web part, I have the following code to access a remote web service
list.asmx:
MyWebReference.ListsmyList =newMyWebReference.Lists();
myList.Credentials
=newSystem.Net.NetworkCredential("theUser","passwd","myDomain");
llnlList.Url ="https://remoteServer/_vti_bin/lists.asmx";
XmlNodelistCollection =myList.GetListCollection();
The last line alwaysthrowsan exception:The remote name could not be resolved.
I can accesshttps://remoteServer/_vti_bin/lists.asmxperfectly using the
credential("theUser","passwd","myDomain").
I believe that the same error will occur for me using any other web service.
What weng wrong?