How to replace SetWebReferenceURL with SOAP Extensibility API
Application Type
Traditional Web
Service Studio Version
11.10.2 (Build 36659)
Platform Version

Guys, we were using SetWebReferenceURL up to now for consuming SOAP web services, but now we get the following error:

The 'SetWebReferenceURL' Server Action cannot be used with the 'CyTA_spcCreateFutureSR' consumed SOAP Web Service created in OutSystems 11. Use the SOAP Extensibility API instead.

How do I deploy the same functionality using SOAP Extensibility API?



Hi Marios, in the documentation Use Advanced Extensibility - OutSystems  you can find the sample code to do that:

Example: Change service endpoint at runtime - OutSystems

You need to create an extension and use the SOAP Extensibility API with this code:

01// required 'using' statements at the beginning of the file
02using System.ServiceModel;
03using OutSystems.SOAP.API;
05/* ... */
07// replace the 'MssChangeEndpoint' function placeholder with the following code
08public void MssChangeEndpoint(string ssUri) {
09    var client = SoapRequest.GetCurrentClient();
10    client.Endpoint.Address = new EndpointAddress(ssUri);



Thanks, Fabio,

This isn't the same as ChangeEndpoint action in  SOAPExtensibilitySamples?



Hi Marios, 

Sorry, I didn´t notice the ChangeEndpoint was included in the samples.  You are right it is the same. You can call it on the OnBeforeRequest event and replace the Endpoint properly.




Hi Guys, I'm having the same issue. In my case I uploaded the XML (SOAP) file from my local due to unauthorize error and upon testing I'm having an error:

The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'NTLM'.  

- Already created the ChangeEndpoint action in Integration Studio.
- Added ChangeEndpoint to OnBeforeReq.

- ChangeEndpoint value
- Im calling the SOAP using the GetWebServiceCredential Server Action to my Screen button.

Do I need to change or add?

Thank You and Best Regards

Hi PJ,

Sent an extension to address such.

Thank you and kind regards,


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