create service reference for wcf service behind authentication

Answered create service reference for wcf service behind authentication

  • 30 mai 2012 18:54
     
     

    i need to create a service reference for a service which requires to authenticated. normally i used wsdl and passing the username and password with it. how to do now? i cant generate the service reference without passing these login information. But wsdl is not available. Someone a clue how to do? i cant turn the authention off

    this is the error i get when i go to the url with the add service reference:

    Metadata contains a reference that cannot be resolved: '<url>'.
    The HTTP request is unauthorized with client authentication scheme

    'Anonymous'. The authentication header received from the server was 'NTLM'.
    The remote server returned an error: (401) Unauthorized.
    If the service is defined in the current solution, try building the solution and adding the service reference again.

Toate mesajele

  • 3 august 2012 13:28
     
     
    Did you find a solution? Because I am having the same issue.
  • 3 august 2012 14:17
     
     Răspuns

    yes... i spent some effort in getting a machine that was in the domain. after i joined it was easy...

    still no clue how to do without