28
Views
6
Comments
[SOAP Extensibility] [Soap WebService] Credentials Setting
soap-extensibility-samples
Service icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.55.8 (Build 63965)
Platform Version
11.26.0 (Build 41987)

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?

2025-01-15 08-35-04
Vignesh Sekar

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

UserImage.jpg
Seiya Shimazaki

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'.

-------------------------------------------------------------------------------------------

2025-01-15 08-35-04
Vignesh Sekar

Dear,

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

UserImage.jpg
Seiya Shimazaki

Hi, @Vignesh Sekar 

Thank you for your comment.


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 ?

2025-01-15 08-35-04
Vignesh Sekar

Hi,

I cant be understand what you are expecting from me? ( screen captures or text describing )?

UserImage.jpg
Seiya Shimazaki


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


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