Hi,

I want to consume SOAP but SOAP have user and password. 

How can i set user and password of the SOAP in outsystems ?

Regard,

Muhammad Agil

Hi Chetan,

Can you give me example to use the "SetWebReferenceCredencials" ?

Thanks,

Muhammad Agil

Solution

Muhammad Agil wrote:

Hi Chetan,

Can you give me example to use the "SetWebReferenceCredencials" ?

Thanks,

Muhammad Agil

Hey,


1. Please import the WSDL from the browser and save it to the disk on your local machine

2. Then you can import this WSDL in service studio. Make sure to use the filepath on your local machine.

3. OutSystems will import the WSDL in service studio and it will give it a name.

4. Now, in your application, go to manage dependencies and import the "EnhancedWebReferences" extension.

5. From the extension, you can import the action "SetWebReferenceCredentials".

6. You need to use this extension action before consuming the soap web service.

7. When using this action - you will find the "WebReferenceName" based on what name OutSystems service studio gave it when importing. Use the same name for this parameter.

8. Then also specify the username and password for the SOAP web service.

9. Then you can use the action to consume the SOAP web service.



Let me know if these steps are helpful.

If you find them helpful, please mark this as a solution.

Solution