on 03-13-2015 10:27 AM
hi
my scenario is soap to proxy.
In proxy response onerequirement is like this :
fieldname is Reference, which can come n number of times. like In response it may come-
Reference1=10,Reference2=20
OR sometimes only Reference1 will come
OR some times till Reference5 can come in response.
How this can be handled in proxy response and in ESR what i need to do for message structure like this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks,But This reply does not help me much.
My requirement is SAP response will come like this-
<ns0:Test_MT>
<Reference1>1246</Reference1>
</ns0:Test_MT>
or
<ns0:Test_MT>
<Reference1>6454</Reference1>
<Reference2>9826</Reference2>
</ns0:Test_MT>
or
<ns0:Test_MT>
<Reference1>8474</Reference1>
<Reference2>7363</Reference2>
<Reference3>8564</Reference3>
</ns0:Test_MT>
This Reference field is not fixed.In response it may come upto ReferenceN.
How to receive this field in Proxy response and how to deal with it in mapping. In Datatype of Proxy response I can not make n number of Reference nodes.
Thanks
Hi,
why don't you change the occurrence of reference field to 0..unbounded, then you can receive as many times as you want , but can you please clarify what you want to do if you once you receive the response just pass them as or you need to add all those reference and map to only one field?
br,
manoj
i have already put 0 to unbounded..
i want to pass the reference1 to referenceN as it is.
I created a single reference field and i did 1:1 mapping. In 1:1 mapping only 1st reference1 value is passed,others are not.
In this there is another limitation that I have to make a single field reference and pass all. I can't make reference1 to reference N field ,as i do not know how many reference will come in response.
>>>In this there is another limitation that I have to make a single field reference and pass all. I can't make reference1 to reference N field ,as i do not know how many reference will come in response.
Change your structure to
<ns0:Test_MT>
<Reference>
<Value>12345</Value>
</Reference>
<Reference>
<Value>abcdf</Value>
</Reference>
</ns0:Test_MT>
If you define only field <reference1> then is it proxy which is sending additional segments <reference2><reference3> etc dynamically?
If so in your response mapping, right click on <ns0:Test_MT> -> return as xml -> write a UDF to extract the values from reference<n> fields and map it to target structure.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.