none
WCF-BasicHttp and PreAuthenticate RRS feed

  • Question

  • Hi there, 

    I have a basic question : 

    • An ERP exposes a WebService that expects Basic Authentication
    • With SOAP UI when I do preemptive authentication it works, when there is no preemptive authentication it fails.

    So basically the behavior of the WebService is : get the request if there is no authentication information in the header send a soap exception (this is not the standard behavior of returning a 401 and then the caller send the Authentication information on the second call)

    Thanks for any help

    Stefan


    Reporting Solution for BizTalk | follow-us on twitter

    Wednesday, March 30, 2016 2:09 PM

Answers

  • Hello,

    If I do not misunderstand you, the following article will tell us how to avoid HTTP 401 roundtrip with adding Basic Authentication headers to the WCF HTTP Request:

    http://plainoldstan.blogspot.jp/2008/07/avoid-http-401-roundtrip-with-adding.html .

    If I have misunderstood you, please feel free to let me know.
    Thanks for your understanding.

    Best Regards,
    Amy Peng

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, April 1, 2016 7:10 AM
    Moderator