Pete:
If the roles do not change within a single MEP, we could use
PMode.Initiator.Role and PMode.Responder.Role (I think we considered
this option in the past, but stayed away from it for some reason.)
Otherwise for each leg of an MEP:
- PMode[1].BusinessInfo.FromRole
- PMode[1].BusinessInfo.ToRole
Note that today, the sender side role is always well identified by
P-Mode:
- For the PO sent by Buyer to Supplier:
PMode[1].BusinessInfo.Role="Buyer"
- For the PO-Accept sent by Supplier to Buyer:
PMode[2].BusinessInfo.Role="Supplier"
But one issue I see, is in case of a one-way MEP, we may want the P-Mode
to have enough info for filling the To/Role field of the message, not
just the From/Role.
Jacques
-----Original Message-----
From: Pete Wenzel [mailto:pete.wenzel@sun.com]
Sent: Friday, May 11, 2007 2:51 PM
To: David RR Webber (XML)
Cc: ebxml-msg@lists.oasis-open.org
Subject: Re: [ebxml-msg] New Issue: Roles Needed in P-Mode
Well, I think we need to identify which side is acting in which Role, as
we do in the Messaging header (and CPA). It would be rather odd to find
a PO being sent from a Party taking the Seller Role to one in the Buyer
Role, for example.
--Pete
Thus spoke David RR Webber (XML) (david@drrw.info) on Fri, May 11, 2007
at 11:36:11AM -0700:
> Pete,
> Or just make the element repeatable?
> DW
> "The way to be is to do" - Confucius (551-472 B.C.)
>
> -------- Original Message --------
> Subject: [ebxml-msg] New Issue: Roles Needed in P-Mode
> From: Pete Wenzel