Error consuming SOAP with Basic Authentication


I am trying to  Consume SOAP API which require basic authentication. 

But how to change it to basic Authentication because API straight away return "Unauthorized"?

I have gone through the Article but how to do this before passing "CONSUME" stage?



Hi Constance,

by looking the error the service you are trying to consume, The Authentications you are used to access/load the WSDL document may be incorrect or authorization failed due to token. 

Please check below link, may be you will get more idea how to consume SOAP correctly.

Hello @Constance Li,

1. Please verify that you are setting the web reference credentials correctly as recommended here;

2. If you are already following #1 or if it does not solve your issue, it is likely the Authorization Header may be missing in your request. If so, then please follow the solution provided in this post.

Hope this unblocks you,



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.