cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Transport Binding - Soap Sender

Former Member
0 Kudos

Hello all,

I'm trying to retrieve a parameter from the HTTP header of a SOAP request.

I have created a SOAP sender communication channel, checked "Set Adapter-Specific Message Attributes" and "Variable Transport Binding", and entered the name of the parameter in Variable Header (XHeaderName1).

When I send the SOAP request, DynamicConfiguration exists with all standard parameters, but there is no XHeaderName1...

If I try the same with sender HTTP adapter, it works fine.

In the other way, if the dynamic configuration parameter XHeaderName1 already exists, and I try to add it in a HTTP header parameter in a receiver SOAP CC, that works.

Does somebody know why this doesn't work in the sender one?

Thanks,

Greg

PS: I'm using PI7.0 SP14

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Greg

What is the value you tried to capture in XHeaderName1. The names of the fields and parameters must correspond to the names of the fields and parameters that also go through the HTTP request. The attribute name space for the adapter is http://sap.com/xi/XI/System/SOAP.It should work

Thanks

Gaurav

Former Member
0 Kudos

Hi Gaurav,

I have added a custom parameter in the HTTP header of the request, named "TestParam", and I try to retrieve it with the SOAP sender adapter by entering the name "TestParam" in the XHeaderName1 field.

But when I look at the dynamic configuration, there is no XHeaderName1 parameter...

I have tested exactly the same thing with HTTP sender adapter, and it worked.

I don't understand why the SOAP adapter doesn't retrieve it.

Thanks,

Greg

Former Member
0 Kudos

Hello,

Try this option,

Select check box Keep Headers in Sender soap adapter.

Regards,

Sreenivas

Former Member
0 Kudos

Hello Sreenivas,

Thank you for your reply.

If I check this box, I can see some parameters in the SOAP header, but the HTTP header parameter is not retrieved any more in the dynamic configuration.

Greg

Former Member
0 Kudos

Hello,

The names of the fields and parameters must correspond to the names of the fields and parameters that also go through the HTTP request. and the attribute namespace for the adapter is http://sap.com/xi/XI/System/SOAP.

Regards,

Sreenivas.

Former Member
0 Kudos

Hello,

I can see in dynamic configuration, with the namespace http://sap.com/xi/XI/System/SOAP, the standard HTTP parameters like SServerHost, SRemoteUser, etc...

But if I add a HTTP header parameter in the SOAP request, and I try to retrieve it with the SOAP sender CC, the parameter is not added in the dynamic configuration. If the name of the added HTTP header parameter is "TestParam", I put "TestParam" in the XHeaderName1 field of the sender CC, but the value is not added in the dynamic configuration. This is my problem.

Thanks,

Greg

Former Member
0 Kudos

Hi Gregory,

Did you resolve this issue? I have exactly the same problem.

If yes, please let us know your solution

Cheers,

Jodie

Former Member
0 Kudos

Hi all,

I saw a few posts with the same issue. This could just be a bug (might have been fixed in some newer releases?).

If you are still having this issue, you should open a ticket so that this issue will be fixed.

An alternative solution is to simply use the axis adapter. Its FAQ Note has a few examples working with the HTTP headers.

Best regards, Yza

Former Member
0 Kudos

I did find a note that seems to address it, but it did not. It could be a specific problem with our system, so here is the note anyway:

https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1470127