on 07-19-2006 12:27 PM
Hi,
I have one xml structure on source side and two on target side. One is exactly same as the source xml structure and the other is a completely different structure. Now, i want to send both these structures through one interface by making one structure as a payload field. Can i do this without writing a custom adapter / custom module for adapter?
Plzz help me with this..
Message was edited by: Qadeer Mohammed Abdul
Hi Qadeer,
if i understood you right, yes. Interfaces will not be validated during runtime, so you can map you message as you like with a simple mapping, it is not required that the result has to correspond with the inbound interface. But you cant use a message mapping, XSLT, Java or ABAP would be possible. You dont need to change the adapter. If you want to change the SOAP envelope, send you message via HTTP adapter and build the envelope as well in the mapping.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think i would better explain the scenario :
Source Message
<Struct1>
<Field1>Somevalue1</Field1>
<Field2>Somevalue2</Field2>
</Struct1>
Target Messages (2nd target msg is same as source msg)
<Target1>
<Name>A name</Name>
<FieldValue>Value is Somevalue1</FieldValue>
</Target1>
<Struct1>
<Field1>Somevalue1</Field1>
<Field2>Somevalue2</Field2>
</Struct1>
I now create a Multimapping (MessageMapping) with one source(<Struct1> and two targets(<Target1> & <Struct1>).
Then i create an interface mapping with one source interface and two target interfaces with source interface message as <Struct1> and target interface messages as <Target1> & <Struct1> respectively.
This Interface mapping is included as a transformation step inside a BPM and this BPM has two sender interfaces with message types <Target1> and <Struct1>. Now when i execute the scenario, i get only <Target1> in the output and the <Struct1> doesnt appear.. This is because in the send step of BPM, i can have only one container variable.
In short, how can i send two container variables from a single send step in BPM.
Hi Sekhar,
If i do it that way, then both the messages would be sent as two different messages which is not what i want.. I want then to be sent as a single message with one xml as payload and the other as the main document of the soap structure. Its like inserting a payload inside the soap structure.
Anyway, ill try ur way by using correlations for send steps (if possible, i'm not sure if i can use correlation for send step.)
Regards,
Qadeer
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.