27
Views
5
Comments
How to add WS-Addressing to a SOAP request in an extension

Hello,

I'm consuming a SOAP via an extension and I need to enable WSA according to the image below.


How can I add this setting to my extension?


Thank you!

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Rui,

This is more of a .NET question than an OutSystems question I suppose. Is your extension a stand-alone extension that handles the SOAP, or do you use the extension together with a OnBeforeRequestAdvanced? If the former, do you use WCF? How do you create the SOAP bindings?

In any case, look for the MessageVersion you supply. If it's just Soap11 or Soap12, then try one of the other values, that include a version of WS-Addressing: Soap11WSAddressingAugust2004, Soap12WSAddressing10 or Soap12WSAddressingAugust2004. That should add WS-Addressing to the binding.

2019-03-13 23-11-47
Rui Encarnação

Hello Kilian,

I am consuming the entire service through an extension, as it was not possible to consume it in Service Studio. After adding the service's web reference in visual studio I got a structure like this and that's where I tried to add it, but without success.


Is this where this association should be made?


Thank you for your help :)

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

How do you call, in your C# code, the WCF service, and how do you call it? The code you have above is the definition of the SOAP service, not the location where you call it.

EDIT: It's probably in the action you created with Integration Studio.

2019-03-13 23-11-47
Rui Encarnação

Hi Kilian,

As I will need to add the WSA to all the service methods, is it not possible to add it right in the SOAP definition?

My invocation is done like this (x is the service input variable) :


Thank you!

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Rui,

I'm honestly not sure whether that's possible, I'd advise you to thoroughly check the .NET/C# WCF documentation regarding SOAP.

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