cancel
Showing results for 
Search instead for 
Did you mean: 

Get data from SOAP Header in udf

Former Member
0 Kudos

Hi,

I want to get value of a SOAP header Runtime Field and use it in udf.

The field I need is <SAP:EOReferenceInbound type="TID">. I think I need to use function getTransformationParameters() but I don't know how to use it.

Can you help me to retrieve this value of SOAP Header in a mapping ?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

one way would be to to use no SOAP envelope check in the soap sender adapter

and then the value would be visible in the mapping (as you'd get the whole SOAP message)

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Thanks for response.

I don't use SOAP adapter. I want to say that I see the value I need to use in my mapping in transaction SXMB_MONI : Inbound Message => SOAP Header => Runtime => EOReferenceInbound.

Can I retrieve in mapping the value of this field ?

former_member200962
Active Contributor
0 Kudos

Check this blog: /people/william.li/blog/2009/07/30/how-to-read-soap-header-information

Make sure that your message structure is defined properly so that it even includes the header fields...otherwise it will throw an error....once you get the value in the field then transfer it as you like using the mapping.

From the above blog:
The SOAP sender communication channel gives us an option to send the complete SOAP XML, including the header. Then, we just 
need to construct a message type in the Enterprise Service Repository (ESR) or Integration Repository (IR) to represent the XML. 
With that, message mapping can be performed. 

Regards,

Abhishek.

Former Member
0 Kudos

Abhishek,

I have same type of needed but I use Idoc adapter, so i haven't communication channel for sender interface.

Former Member
0 Kudos

Check out Note-856597 for accessing SOAP header data in XI.

Have a look at this thread. Similar requirement is answered here.

former_member200962
Active Contributor
0 Kudos
I have same type of needed but I use Idoc adapter

I dont think it is possible then.....probably Michal may correct me.

Regards,

Abhishek.

Answers (0)