Adding parameter to http header in a s soap call

Adding parameter to http header in a s soap call

  

What is the recommended API to add a parameter in http header while executing a soap call.

Can we use HTTPRequestHandler extension  AddHeader  for same but it says that  adds an header to the current HTTP response. Will this add a parameter in http header while calling soap.

ardoHTTP : This does not have any API .


Please suggest .  

Eduardo Jauch wrote:

Hi,

You can use this API: https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/EnhancedWebReferences_API?origin=d

Cheers

Eduardo Jauch

Need to add to HTTP header only NOT to the SOAP header .Which one you are suggesting for HTTP header in a SOAP call


Hello,

You probably want something like this: https://www.outsystems.com/forums/discussion/17460/how-to-pass-http-headers-in-soap-webservice/

Let me know if it is this or not.

Cheers,

Eduardo Jauch

Eduardo Jauch wrote:

Hello,

You probably want something like this: https://www.outsystems.com/forums/discussion/17460/how-to-pass-http-headers-in-soap-webservice/

Let me know if it is this or not.

Cheers,

Eduardo Jauch

I checked both ardoHTTP and WebService Proxy extension but could NOT find a API which will add a parameter to HTTP HEADER. Any input.


Hello java,

It seems that the platform lacks a way to change HTTP headers in a SOAP call.
The suggestions on the topic relay on two possibilities.

1. You call the web service from an extension. This way you can use the libraries and tools from the stack you are using (.Net / Java) to call the web service, defining HTTP header parameters.

2. You use the WebService Proxy component as the base to create your own code to call the web service.
Citing Mário: 

This extension uses the EnhancedHttp extension to set the url of the service request to an internal module… that gets the http request, (logs it) and makes an HTTP post to the final destination. You can then change the http post and add extra headers.

So, this way, you can adapt the code to insert the parameters you want in the HTTP header.

I think at this moment, those are the options.

Cheers,
Eduardo Jauch