This content has been marked as final. Show 4 replies
I have few questions ,i want to send data from one TP to another through xml gateway and both the sides we need xml payload and we are using the custom doc protocol .First of all you need to deploy a composite with AppsAdapter which should pull messages from XMLGateway and then transform it to the B2B message format (if formats are different). This composite should pass the transformed message with required B2B headers to B2B. At B2B, you need to create and deploy the agreement.
Do i need ecs file for this ?No. For custom XML documents, you do not need ecs, instead you should have the XSD of the XML.
I want to add custom headers (remote TP need those ) ,how to add those if i don't use .ecs file ?If you want to include the headers in the payload then corresponding XSD should have the elements defined for it. If you want to add HTTP transport headers then in HTTP channel you need to provide the headers in Additional Transport Headers section.
Please refer -
Can you please tell me with an example how to do that in both the cases ..
1) Headers in the payload
I have to add
Currently B2B does not support OXTA transport so one possible option is to use java callout with generic HTTP transport. Create a transport callout which should add these headers in the message and then use that callout in the channel of your remote TP. Please refer -
I do not remember the complete details but I think for one of the customer a patch was delivered for OXTA. Please log a SR with support and check about it. Still I will recommend to go with java callout option.