on 01-30-2007 2:45 PM
hi all,
I am trying File to File Scenerio.
<MTO_Generic_v1>
<Node>
<Node>
</MTO_Generic_v1>
This is my outbound Message Type.
I am giving input with similar structure but the only difference is:
<MTO_GenericJMS_v1>
<Node>
<Node>
</MTO_GenericJMS_v1>
The result is mapping failure so would like to know whether it'll work or not.
Hi Gaurav,
Well,could you please forward your outbound xml file.
Hope you will be send the xml file.
Thanks and Regards,
Chandu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gaurav,
You should change your structure. Just try to create the two datatypes:
DTO_Generic_v1 and add an subelement Node to it.
and
DTO_GenericJMS_v1 and and add an subelement Node to it.
Now create two message types as given by you:
MTO_Generic_v1 and MTO_GenericJMS_v1 and import the corresponding data types.
Then you do simple message mapping. It would be one to one. It should work.
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
it will work , try to do one to one mapping ..
please let me the exact error..
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gaurav,
Test your mapping using:
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Let us know what error u r getting?
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
untill you change one of the names this will not work
you need to have the same name if you use MESSAGE MAPPING
check out my blog to see how to test your mappings:
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
I am giving the details of my problem:
Im creating a Generic Interface that allows any type of 3 input types to go thru it, for example an invoice or sales order or purchase order. And inside the message mapping i have to check at runtime as to what kind of input that actually is...
and the catch here is that they all have different structures...meaning the PO structure is different from SO structure
So what i thought i will do is create a Generic interface that has all the PO,SO and Invoice structures incorporated in one message type with 0:1 occurence so that if an PO comes only that is created in the output and not the rest because of the optional occurence
So when Data
Comes in Generic interface it comes in this format:
eg: file_input is my Message Type in Generic Scenerio:
<file_input>
<PO_input>
<data1>
<data2>
</file1_input>
<SO_input>
<data1>
<data2>
</file2_input>
</file_input>
Now i am getting the input xml file as:
<Read_File>
<PO_input>
<data1>
<data2>
</PO_input>
</Read_File>
another Input:
<Read_File_Data>
<SO_input>
<data1>
<data2>
</SO_input>
</Read_File_Data>
Now the problem is with the topmost message tag.
Since the both are different the inputs are not flowing thru.
Can you please propose some solution for this?
hi,
many ways to overcome that:
you can create a java (or abap) mapping that will
handle all kinds of structures
(only message mappings are structure validated)
you can also check the message and do something with it
inside an adapter module in which you have the whole message
and you can recreate it as you wish
but why do you need such a generic message?
maybe it would be easier to use one message per one interface
for sure this will be more standard way and easier to monitor
debug and develop later on...
Regards,
michal
Hi Michal,
Thanks for timely response.
I have http sender.What i want is to read any input message that
comes to the http adapter and take only the fields that i require from
it.
Is this feasible in XI.
And you have mentioned about the adapter module but i see that
adapter module is disabled for http adapter so suggest me some solutions
for this.
Thanks for your timely response.
Hi Gaurav,
We had a very similar requirement where in we had to have a Generic webservcie exposed on XI with which any XML payload could be sent....
So what we did to achieve is that create a generic structure with fields like 'DocId', 'Sender', 'Receiver' and a field which we named as 'ORIG_XML_PAYLOAD'....
now we had a java mapping which would extract the contents of the tag 'ORIG_XML_PAYLOAD'..
Of course the idea in our case was for other systems to use on wsdl.....however after this generic java mapping program the output of that is a specific xml message for the scenario being worked on...
Thanks.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.