You must Sign In to post a response.
  • Category: Webservices

    Using WSDL Created a proxy and trying to access a method from proxy class giving error

    Hi All

    I received a WSDL file from my colleague. Using that WSDL I created a proxy class in VS2.0. I generated a URL of that service and try to pass the values then I am getting below error

    system.net.webexception the request failed with http status 401 unauthorized.

    I did below changes in app.config file

    1. Impersionation is True
    2. enable port is true.

    But still I am getting the error. Can some help me out to fix this issue.

    I can post if you need more details.
  • #753136
    There are several things you need to verify.

    Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls
    Are you using an application pool running under a specific identity?
    You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server.

    If you want to get it working you could just provide an account for Anonymous Access...

  • #753138
    I am not using any application pools because it is not hosted under IIS. it is creating MSI file (Windows applicaiton).

    Can some explain more details on the below comment

    You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server


  • Sign In to post your comments