How to set proxy using SOAP Extensibility API

Hi,

Earlier on Outsystems 10 we had an option to set proxy for SOAP API using one of the methods of EnhancedWebReferences API, a refrenced extension. Now I can't use the same extension as it's deprecated on Outsystems 11. I came across SOAP Extensibility API and its various use cases but none of them covers how to set proxy using it. Can you please help me as I don't have much of an experience of coding on .NET .

Hi Shashankit,

A Forge component is available that demonstrates the usage of the SOAP Extensibility API:

https://www.outsystems.com/forge/component-overview/5322/soap-extensibility-samples 

The API itself is described in the following OutSystems success document.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/SOAP_Extensibility_API 

Furthermore, step-by-step instructions on how to use the API can be found in the following document:

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

Regards,

Daniel

Hi Shashankit,

Please go through below URL for adding custom header in soap request -

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/SOAP/Consuming_SOAP_Web_Services/Use_Advanced_Extensibility/Example%3A_Add_SOAP_header#Example 


You can create similar extension to set Proxy Information.



Daniël Kuhlmann wrote:

Hi Shashankit,

A Forge component is available that demonstrates the usage of the SOAP Extensibility API:

https://www.outsystems.com/forge/component-overview/5322/soap-extensibility-samples 

The API itself is described in the following OutSystems success document.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/SOAP_Extensibility_API 

Furthermore, step-by-step instructions on how to use the API can be found in the following document:

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

Regards,

Daniel

 

Hi Daniël,

I went through all the links and documents you shared but none of them describes how one can set proxy for SOAP API. 

I went through the below link where it's suggested to consume the entire API in Integration Studio instead of Service Studio. I don't have much of an experience of coding on  C#. Isn't there any other way to do it as setting proxy for the soap API seems to be quite a common use case. 

https://success.outsystems.com/Documentation/How_to_Guides/Integrations/How_to_consume_a_Web_Service_in_Integration_Studio

Meanwhile I'm sticking to EnhancedWebReference extension to set proxy for the API I had consumed on Outsystems 10 which is now migarted to Outsystems 11. 

Is it a right approach to use deprecated functions? How long will I be able to use it? I mean, is there a chance that next version of Outsystems will not let us use it even on applications migrated from Outsystems 10.

I'll be really glad if you could help me with these questions.

 

Vinod Patidar wrote:

Hi Shashankit,

Please go through below URL for adding custom header in soap request -

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/SOAP/Consuming_SOAP_Web_Services/Use_Advanced_Extensibility/Example%3A_Add_SOAP_header#Example 


You can create similar extension to set Proxy Information.



Hi Vinod,

I did try what you suggested. What  I've understood is in order to set proxy for SOAP API I need the name of the class which consumes the SOAP API and to that we set the proxy.

To communicate with an XML Web service using HTTP, one must create a proxy class deriving indirectly or directly from HttpWebClientProtocol for the XML Web service.

Here the Math class is the one which has web service and it's base class is HttpWebClientProtocol  that's why we can use the property proxy on the object that we created of the web service class

MyMath.Math math = new MyMath.Math();

 IWebProxy proxyObject = new WebProxy("http://proxyserver:80",true);   

 math.Proxy = proxyObject;


Have you yourself ever set proxy for SOAP API? If yes can you please help me with it?