This content has been marked as final. Show 5 replies
I don't understand your requirement. Can you please elaborate?
Thanks for reply
In My scenario i have to receive custom documents(cXML file) from two remote trading partners through http channel. I just created one custom document definition...and each agreement for each trading partner using that document definition.
If the document (i/p) is coming from soa, then easily i can give fromTP and toTP values in SOA mediator or bpel and i can route the document to particular agreement.
But in my case,the i/p document doesnt comes from SOA (it may come from http servlet or in some way) so i cant give toTP and fromTP values.
so if it is a EDI document ,then we can route it according to the identifiers. but in my case it is a Custom document i.e, cXML.xml
so in my xml i had one <Identity>xxx</Identity> tag ,this identity tag value tells us from which partner the document is coming. so by using this identity tag can i route it to particular agreement.
so based on the above identity tag, how can i find the trading partner in b2b.
Thanks in advance,
Please add generic identifiers (IP address) in the trading partner profiles. In the host TP profile add your B2B's IP address (or the masked IP address like 10.10.10.* if you have range of IP addresses) as Generic Identifier and in remote TP profile add your partners IP address as Generic Identifier.
When any of the partner will send the custom message to your server, their IP will be used by your B2B to identify that which partner has sent the message.
Is there any option of getting the value of indentity tag from the input (cXML.xml) and use it as an identifier.???
because if the ipaddress changes than...????
Thanks in Advance
You can use mask to specify range of IP address. For example, below is a valid generic identifier -
so any messages coming from 10.11.12.x will be treated as message from partner having above generic identifier
Is there any option of getting the value of indentity tag from the input (cXML.xml) and use it as an identifier.???Not supported as of now however you may file an enhancement.