locked
unauthorized system.web.services.protocols.soaphttpclientprotocol.readresponse(soapclientmessage message, webresponse response, stream responsestream, boolean asynccall)

    Question

  • Basic Error

    Create Transaction Error - The request failed with HTTP status 401: Unauthorized. -

    Tracable Error
    the request failed with http status 401 unauthorized system.web.services.protocols.soaphttpclientprotocol.readresponse(soapclientmessage message, webresponse response, stream responsestream, boolean asynccall)

    Scenerio

    Sharepoint Application, user clicks on a button to create a custom child site. error returns


    impersonation is set to true

    MOSS SP2

    Thursday, July 02, 2009 3:13 PM

Answers

  • Found the answer, it was a host header issue, the client would connect to the site on sharepoint using http://site

    but the error would a appear, since the the function to create a child site would point to site.corporation.com

    i made some entries in IIS for the time beinging, inwhich resolved the issue.


    Friday, July 03, 2009 7:20 PM

All replies

  • The server says you're unauthorized.
    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of old ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    Friday, July 03, 2009 6:57 PM
    Moderator
  • Found the answer, it was a host header issue, the client would connect to the site on sharepoint using http://site

    but the error would a appear, since the the function to create a child site would point to site.corporation.com

    i made some entries in IIS for the time beinging, inwhich resolved the issue.


    Friday, July 03, 2009 7:20 PM
  • Glad you found it.

    Is there a way I could have helped you find it? I couldn't see where to go next, given the information you posted.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of old ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    Friday, July 03, 2009 7:24 PM
    Moderator
  • Just trial and error, i wasnt sure which way to go either on this, was dealing with Sharepoint, Web Services and SQL.

    it was a trial and error.

    As i see it, its not THE FIX, just a FIX :)

    Friday, July 03, 2009 7:55 PM