Why deny webservice

A

ad

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?
 
J

John Davis

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.DefaultCredentails

and see if that works.

cheers

John
 
A

ad

Thanks,
But how to get Proxy of a WebService?

John Davis said:
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.DefaultCredentails

and see if that works.

cheers

John
 
J

John Davis

either add a web reference to the url of the .asmx file or run WSDL.exe
against the WSDL file.
 
A

ad

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,045
Members
48,769
Latest member
Clifft

Latest Threads

Top