|
From: David RR W. \(XML\) <da...@dr...> - 2005-12-27 22:19:15
|
<div>Ladistan,</div>
<div> </div>
<div>I'm not totally clear on this - why are you just not giving an error
or assigning 'unknown' to the role if they do not provide one?</div>
<div> </div>
<div>DW<BR><BR></div>
<BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT:
blue 2px solid"><BR>-------- Original Message --------<BR>Subject:
[ebxmlms-general] Bug in the ebxml header<BR>From: Ladislav Urban
<lad...@we...><BR>Date: Tue, December 27, 2005
3:59 pm<BR>To: ebxmlms-general
<ebx...@li...>,<BR>ebxmlms-develop
<ebx...@li...><BR><BR>Hello hermes
developers,<BR>I have found bug in ebxml header. For example if I
call<BR>setFromRole(null) with null value. This method creates empty
Element<BR><eb:Role/> . This problem is repeated in
setToRole and possibly other<BR>methods.<BR>I fixed the
problem:<BR><BR>Do you agree with this solution?<BR><BR><BR>public void
setToRole(String role) throws SOAPException {<BR>
if (role != null) {<BR><BR>
if (toRole == null) {<BR>
if (toPartyIds.size() > 0) {<BR>
to.addChildElement(ELEMENT_ROLE, role);<BR>
}<BR>
toRole = role;<BR>
} else {<BR>
throw new SOAPValidationException(<BR>
SOAPValidationException.SOAP_FAULT_CLIENT, "<"<BR>
+ NAMESPACE_PREFIX_EB + ":"
+<BR>ELEMENT_ROLE<BR>
+ ">
has already been " + "set in <"<BR>
+ NAMESPACE_PREFIX_EB + ":" + ELEMENT_TO<BR>+
">!");<BR> }<BR><BR>
}<BR>
}<BR><BR><BR><BR><BR><BR><BR><BR><eb:From><BR><eb:PartyId<BR>eb:type="urn:oasis:names:tc:ebxml-cppa:partyid-type:duns">AutoMateHub</eb:PartyId><BR><eb:Role/><BR><eb:Role>Seller</eb:Role><BR></eb:From><BR><eb:To><BR><eb:PartyId<BR>eb:type="urn:oasis:names:tc:ebxml-cppa:partyid-type:duns">TestDriver</eb:PartyId><BR><eb:Role>Buyer</eb:Role><BR></eb:To><BR><BR>--
<BR>Ladislav Urban<BR>CEO<BR>Webswell Inc.<BR>1333 Howe Avenue, Suite
100<BR>Sacramento, 95825 CA<BR>email:
lad...@we...<BR>phone: +1 (916) 290-2040<BR>fax: +1
(916)
921-2850<BR>http://www.webswell.com<BR><BR><BR><BR>-------------------------------------------------------<BR>This
SF.net email is sponsored by: Splunk Inc. Do you grep through log
files<BR>for problems? Stop! Download the new AJAX search
engine that makes<BR>searching your log files as easy as surfing the
web. DOWNLOAD
SPLUNK!<BR>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click<BR>_______________________________________________<BR>ebxmlms-general
mailing
list<BR>ebx...@li...<BR>https://lists.sourceforge.net/lists/listinfo/ebxmlms-general
</BLOCKQUOTE>
|