cancel
Showing results for 
Search instead for 
Did you mean: 

How to HTTP-Post different XML messages to one receiving URL on XI side?

Former Member
0 Kudos

Hi

I have a problem with a HTTP => XI => IDoc scenario.

A client want to send 4 different XML documents to only 1 receiving URL on the XI side. How can I handle this in XI???

To send XML data via HTTP to XI you have to specify the namespace, interface and service in the URL. But I only can specify 1 namespace, interface and namespace in the URL...

But how can I define a generic message interface for all 4 messages.

The solution with 4 receiving URL's is easy, but not workable for the client

Thx

manuku

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try with:

- Multimapping on Sender Side

- Enhanced Receiver Determination if needed to call different receiver depending on the message sent.

Former Member
0 Kudos

Hi Anand

Multimapping on sender side is not possible.

I know the Enhanced Receiver Determination functionality. But how is it possible to post different XML document to you URL with one namespace, interface and service? How have I to configure the one message interface for the incoming HTTP-post on Design-side?

Thx

manuku

stefan_grube
Active Contributor
0 Kudos

You can do following:

Create an interface with an artificial root node like this:

root

- structure message 1

- structure message 2

- structure message 3

- ...

A simple XSLT/Java mapping adds that root node to every message.

Create different mappings based on the structure if the different mappings and do routing based on the same.

Another option: Upgrade to PI 7.1. Here you can simply create a service interface with different operations and routing/mapping based on the operations.

Regards

Stefan

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Tobias,

the solution is quite easy: Just do nothing, he, he. Interfaces are not validated, so create a dummy outbound interface (one field is enough) and put conditions on interface determination. Message Mapping is now avoided, the only disadvantage (is this a handicap?) - you have the choice between Java, ABAP and XSLT.

Regards,

Udo

aeh, sorry, the old thread was brought to the top be Menaga, i didnt see it was already solved

Edited by: Udo Martens on Feb 10, 2009 6:24 PM

former_member58757
Participant
0 Kudos

I am new to HTTP adapter configuration, can you please provide me the steps for receiving po which is cxml with DTD and map to IDOC and send to R/3. My company doesnt want ot use webservices.Please advice.

Thanks