20
Views
2
Comments
[SOAP Extensibility] "Object reference not set to an instance of an object." when I call Get*Headers_From*
soap-extensibility-samples
Service icon
Forge asset by OutSystems
Application Type
Service

Hi all,

I'm consuming a SOAP web service, and I would like to inspect the headers I'm sending.

I have tried with all the combinations of Get*Headers_From* but I always get:

Even if I use Add*Header_To* before Get*Headers_From*  just to be sure some headers exist.

Am I doing something wrong? thanks

UserImage.jpg
Alexandre Yip

Hi Gianluca Ghioni, 

Try to use  for a instance 

the method GetRequestHeader of the 

HTTPRequestHandler API

https://success.outsystems.com/documentation/11/reference/outsystems_apis/httprequesthandler_api/

Hope that it helps you 

2016-11-23 11-46-48
Pedro Guimarães
Staff

Hi Gianluca,

Sorry for just getting back to you now. Don't know if you've managed to solve this meanwhile, but the reason for the problem is where you are calling GetSOAPHeaders_FromRequest.

There are 2 steps when trying to use the Get<something>Headers Actions:

  1. Call the RegisterInspectHeaders Action inside the OnBeforeRequestAdvanced
  2. In the flows of other Actions, where you want to call some of the service's SOAP Action, you should add right after that a call to the relevant SOAP Extensibility Action.

So in the example above, after calling GetPatients Web Method, we call GetSOAPHeaders_FromReponse.

Let me know if this helps!

Cheers

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