DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5213>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5213 DOMCount example cannot validate a SOAP message Summary: DOMCount example cannot validate a SOAP message Product: Xerces2-J Version: 2.0.0 [beta 3] Platform: Other OS/Version: Windows NT/2K Status: NEW Severity: Critical Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, 1) I have tried to use the DOMCount example to validate a SOAP, but it gives the following message: [Error] SOAPMessage.xml:6:56: Attribute "SOAP-ENV:mustUnderstand" must be declar ed for element type "VOD:Session". SOAPMessage.xml: 981 ms (5 elems, 10 attrs, 15 spaces, 44 chars) 2) the DOMCount example validates only either the Header part or the Body part. What I mean is that 1)if the Header part exists in the SOAP message, the DOMCount example will validate the Header part and ignore the validation for the body part; 2) if the Header part does exist in the SOAP message, then it will validate the Body part. Here are my schema and SOAP message: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ C:\DAS_Schema\envelope.xsd"> <SOAP-ENV:Header> <VOD:Session xmlns:VOD="http://www.divatv.com/schemas/vod" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.divatv.com/schemas/vod C:\DAS_Schema\Session.xsd" SOAP-ENV:mustUnderstand="1"> 00000000000000000000000000 </VOD:Session> </SOAP-ENV:Header> <SOAP-ENV:Body> <VOD:Transaction xmlns:VOD="http://www.divatv.com/schemas/vod" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.divatv.com/schemas/vod C:\DAS_Schema\Transaction.xsd"> -123 </VOD:Transaction> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.divatv.com/schemas/vod" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.divatv.com/schemas/vod" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Session" type="SessionType"/> <xs:simpleType name="SessionType"> <xs:restriction base="xs:string"> <xs:length value="26"/> <xs:whiteSpace value="collapse"/> </xs:restriction> </xs:simpleType> </xs:schema> <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.divatv.com/schemas/vod" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.divatv.com/schemas/vod" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Transaction" type="xs:positiveInteger"/> <!--xs:element name="Transaction" type="TransactionType"/> <xs:simpleType name="TransactionType"> <xs:restriction base="xs:positiveInteger"> <xs:whiteSpace value="collapse"/> </xs:restriction> </xs:simpleType--> </xs:schema> Please, take a look at my examples and let me know. My phone number is (650) 779-3121. Thank You, Ha --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
