cancel
Showing results for 
Search instead for 
Did you mean: 

Plain HTTP sender adapter - Extract XML from request

Former Member
0 Kudos

Hi all,

I face a blocking issue in one of my B2B process.

A marketplace must send Purchase orders to my customer with synchronous HTTPs requests.

When messages arrive, we can see the following payload in incoming message (SXMB_MONI)

%24xmldata=+%3C%3Fxmlversion%3D%221.0%22encoding%3D%22UTF-8%22%3F%3E%0D%0A-%3CMessage%3E%0D%0A-%3CHeader%3E%0D%0A%3CFrom%3EPA%3C%2FFrom%3E%0D%0A+%3CTo%3E83092SAC01%3C%2FTo%3E%0D%0A+%3CDocType%3ETAEPa-xCBL30PO%3C%2FDocType%3E%0D%0A++%3CDocID%3EP-20050502T125611-TATG310-

...

%0D%0A++%3C%2FMessage%3E&submit=Soumission

WebServer of B2B partners don't put XML data in HTTP body but as HTML form in .

Is there a way in Plain http adapter to interpret such a request ?

How can we decode hexadecimal sequence ?

Thanks to help us.

Jean-Charles

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jean-Charles !

You can develop an adapter module to convert/translate the incoming data format to XML.

Regards,

Matias.

Former Member
0 Kudos

Hi Matias,

Thanks for your response but with plain http adapter, adapter module tab isn't accessible !

Former Member
0 Kudos

Hi Jean-Charles!

You're right, the http is not in j2ee stack, you could create instead a java proxy that handles that conversion.

Alsp check this thread (it is not answered, but may give you a clue)

Regards,

Matias.

Edited by: Matias Denker on Dec 26, 2007 11:33 AM

Former Member
0 Kudos

Hi all,

I find the solution : using an additionnal Http handler request before standard one (CL_HTTP_PLAIN_INBOUND)

Thanks for all,

Former Member
0 Kudos

Hi Jean-Charles !

Unfortunately, I don't know any other option (based on XI; maybe you can develop some kind of external translator between your system and XI's http adapter). The first link (although it is based on a escenario in the oposite direction) speaks about using java proxy instead of the http adapter.

Here are some links:

/people/thorsten.nordholmsbirk/blog/2006/08/06/use-a-java-proxy-instead-of-a-jca-adapter

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30572c6a-d311-2a10-99ab-f646ec3b...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd2...

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+proxy&adv=false&sortby=cm_rnd_...

Regards,

Matias

ps: please award points if helpful.