cancel
Showing results for 
Search instead for 
Did you mean: 

http to http scenario - header field to send

former_member183906
Active Contributor
0 Kudos

hi,

i am using PI 7.3 single stack.

http sender to http receiver is the scenario.

we have to pick 1 field from HTTP header and send it using HTTP. How to pick HTTP header fields and send to receiver.

we are using XSLT mapping here.

any idea about HTTP header send ?

regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We are using SAP PI 7.31 single stack java and done the same thing.

It can be done easily by enabling the adapter specific message attributes.

In routing and mapping you can use the namespace and the technical name of attributes to access them.

Use this link:

http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/content.htm

former_member183906
Active Contributor
0 Kudos

Hi Manish,

Thanks for your reply. I have set HTTP sender as you mentioned.

Field 1(Header Field One) is TID in my case.

But in XSLT mapping program mentioned in SAP help ,

XSLT program is to change the parameter Directory of the file adapter. In my case ,I have to pick TID from message header and send it via HTTP.

Any idea in what will be in XSLT program in this case ?

Regards

former_member183906
Active Contributor
0 Kudos

The XSLT program mentioned here is giving below errors :

http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/content.htm

Error:

Error:

how it will be fixed ?

Former Member
0 Kudos

Hi,

Please check the SAP XML Toolkit checkbox in OM.

-Manish

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi,

I haven't worked with SAP PI 7.3 single stack yet, but you could consider this idea.

According with the documentation http://help.sap.com/saphelp_nw73/helpdata/en/03/e2d70a626342feaef7f2f9f04a1776/content.htm:

  1. To copy the HTTP header values into XI dynamic headers, choose the HTTP Header Fields checkbox.
  2. Enter the HTTP header names in the corresponding fields.

For more information, see Using Adapter-Specific Message Attributes in the Message Header

The link points where is possible to acces that parameters. The trouble comes up how use that parameter in the http receiver. Check William Li's blog with dynamic configuration http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/04/18/dynamic-configuration-of-some-com...

I hope this helps you a bit.

Regards.