Sorry
I can't understand what you say.
I use the code:
WebReference.Service wsHealth = new WebReference.Service();
wsHealth.Credentials =
System.Net.CredentialCache.DefaultCredentials;
wsHealth.Proxy.Credentials =
System.Net.CredentialCache.DefaultCredentials;
But it result in an null reference error on the last line.
How can I do?
"John Davis" <jo*********@hotmail.com¼¶¼g©ó¶l¥ó·s»D:O4********* *****@TK2MSFTNGP05.phx.gbl...
either add a web reference to the url of the .asmx file or run WSDL.exe
against the WSDL file.
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:uw**************@TK2MSFTNGP03.phx.gbl...
>Thanks,
But how to get Proxy of a WebService?
"John Davis" <jo*********@hotmail.com¼¶¼g©ó¶l¥ó·s»D:O$********* *******@TK2MSFTNGP05.phx.gbl...
>>Hi
If your web server is configured for integrated security then you will
need to give some ctredentials to the proxy.
You could try:
myProxy.Credentials =
System.Net.Credentials.CredentialCache.DefaultCr edentails
and see if that works.
cheers
John
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:ut**************@TK2MSFTNGP06.phx.gbl...
When I access a web page in internet, it is ok.
But when my application access webservice, it result in an error
message : "Access deny"
The port 80 is open in my firewall.
What's happen?