|
From: Gait B. <gai...@ti...> - 2003-02-26 20:08:42
|
Hi,
we just discovered an error in MessageHeader.java. Only the first =
partyId in From and To is loaded from the XML when reading back from the =
SOAP message. Since we used the same code for verification, we didn't =
notice until know :-)
Here's the diff to fix it:
diff -r1.7 MessageHeader.java
462,466c462,468
< ExtensionElement partyId =3D
< new ExtensionElementImpl(soapEnvelope, (SOAPElement)
< partyIds.next());
< fromPartyIds.add(new PartyId(partyId.getValue(),
< partyId.getAttributeValue(ATTRIBUTE_TYPE)));
---
> while (partyIds.hasNext()) {
> ExtensionElement partyId =3D
> new ExtensionElementImpl(soapEnvelope, (SOAPElement)
> partyIds.next());
> fromPartyIds.add(new PartyId(partyId.getValue(),
> partyId.getAttributeValue(ATTRIBUTE_TYPE)));
> }
498,502c500,506
< ExtensionElement partyId =3D
< new ExtensionElementImpl(soapEnvelope, (SOAPElement)
< partyIds.next());
< toPartyIds.add(new PartyId(partyId.getValue(),
< partyId.getAttributeValue(ATTRIBUTE_TYPE)));
---
> while (partyIds.hasNext()) {
> ExtensionElement partyId =3D
> new ExtensionElementImpl(soapEnvelope, (SOAPElement)
> partyIds.next());
> toPartyIds.add(new PartyId(partyId.getValue(),
> partyId.getAttributeValue(ATTRIBUTE_TYPE)));
> }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gait Boxman
Manager Advanced Technology & Standards
TIE Product Development BV
Amsterdam, The Netherlands
Tel: +31 20 658 9091 Fax: +31 20 658 9945
E-mail: gai...@ti... WWW: www.TIEglobal.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |