Skip to Content
0
Former Member
Apr 01, 2008 at 06:20 PM

Send XML Message via HTTP and Receive Response

305 Views

Hello,

We have a scenario where we need to update Currency Exchange Rates in R/3 via a 3rd party called Oanda. I'd like to use XI for this Interface, if possible.

Basically, we need to send XML over HTTP. Here's the URL and the XML we need to use for our POST (I'll need to perform the look-up for about 15 currency codes - I plan on using a BPM process to loop through each currency code specified in a flat file):

http://www.oanda.com/cgi-bin/fxml/fxml?fxmlrequest= TestAccount1 USD CAD 03/25/2008 >

And the reponse looks like this:

<RESPONSE>

<EXPR>CAD</EXPR>

<EXCH>USD</EXCH>

<AMOUNT>1</AMOUNT>

<NPRICES>1</NPRICES>

<CONVERSION>

<DATE>Mon, 24 Mar 2008 20:00:00 GMT</DATE>

<ASK>1.0257</ASK>

<BID>1.0251</BID>

</CONVERSION>

</RESPONSE>

I plan on mapping each reponse to BAPI_EXCHRATE_CREATEMULTIPLE, using BPM.

So my question is this: Should I use the HTTP adapter for the out going POST to Oanda? If so, would the HTTP adapter be consider the sender or the receiver? Also, how would the XML message be automatically appended to the end of the URL (i.e., after the fxmlrequest parameter)? I guess I'm a little confused on how to use the HTTP adapter... Are there any blogs that discuss this type of scenario?

Thanks,

Matt