We have an AS2 Vendor to which connect and that vendor sends/receive the message to/from the partners . So , AS2 identifier is same for vendor . For incoming message , partners send message to the vendor and vendor sends it to us .
So , we have two partners with the same AS2 Id of AS2 vendor in B2B console . Once we get the message from the partner , we send the message to SOA adapter . But since AS2 Id is same for both the partners , SOA composite can not determine from which partner the message is coming . We use b2b.fromtradingpartnerid to differentiate . How can we send partner name to SOA adapter and composite so that composite can use partnername to idetify the partners.
I'm not sure I understand the question but I can suggest that you take a look into the patch 18021286.
As part of this patch, you are able to send custom properties from B2B to the back-end application by using a Java callout.