I would like to use a WebService(SOAP) available in C# with OutSystems. [C# Sample]ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
//Web Service Reference
SoapWebServiceType wsXXX = new SoapWebServiceType.SoapWebServiceXXX();
//Credentials Setting
wsXXX.Credentials = System.Net.CredentialCache.DefaultCredentials;
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
How can such a setup be implemented in OutSystems?
Dear,
You don't need to build any extension for the SOAP. The service is already available in the logic tab. You can simply right-click and upload the WSDL file path or file to consume the SOAP service.
Please find the documentation for your reference SOAP Details
Hi, @Vignesh Sekar
Thank you for your comment.
As you say, I can upload a WSDL file and import a SOAP web service into OutSystems.
But, if I try to call the SOAP web service in an action, I will get an error.
[Error Sample]----------------------------------------------------------------------
This HTTP request is not authorized with client authentication scheme 'Anonimous'.
The authentication header received from the server was 'Negotiate,NTLM'.
-------------------------------------------------------------------------------------------
The error indicates that the authentication method is missing the NTLM token.
To resolve this, you need to add the NTLM token to the request header.
Please create a new extension and use the following code to generate the NTLM token:
csharpCopyCredentials = new NetworkCredential("username", "password", "domain");
This function generates the NTLM token for your SOAP service. Afterward, use the SOAP extensibility function OnBeforeRequest to add the NTLM token to the request header.
Hope it will work !
if you still have issue please share OML I will update for you
I understand that an authentication token is required.
But I'm sorry.
For security reasons, I can not provide the OML.
Could you please provide each setting to screen captures or text describing ?
Hi,
I cant be understand what you are expecting from me? ( screen captures or text describing )?
I'm so sorry.I apologize for the description being difficult to understand.
Could you please provide each detail setting ;
・Value/type of input/output parameters of extension module
・Actions used in OnBeforeRequest
・Value/type of input/output parameters of actions used