Error consuming SOAP with Basic Authentication
Question

Hi, 

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?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/SOAP/Consuming_SOAP_Web_Services/Configure_Web_Service_Authentication



Thanks.

Constance


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.

https://www.outsystems.com/forums/discussion/16667/wsdl-load-error-401-unauthorised/

https://www.outsystems.com/forums/discussion/43150/401-unauthorized-error-on-calling-rest-api/




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,

Regards,

AJ

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