Hi, all: I try to check the validation of the following message which is generated from the Axis client(WSDL2Java,.....) :
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:KeywordSearchRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.amazon.com"> <KeywordSearchRequest href="#id0"/> </ns1:KeywordSearchRequest> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:KeywordRequest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://soap.amazon.com"> <keyword xsi:type="xsd:string">dog</keyword> <page xsi:type="xsd:string">1</page> <mode xsi:type="xsd:string">book</mode> <tag xsi:type="xsd:string">webservices-30</tag> <type xsi:type="xsd:string">lite</type> <devtag xsi:type="xsd:string">your-dev-tag</devtag> <sort xsi:type="xsd:string" xsi:nil="true"/> <locale xsi:type="xsd:string" xsi:nil="true"/> <price xsi:type="xsd:string" xsi:nil="true"/> </multiRef> </soapenv:Body> </soapenv:Envelope> I use Xerces 2.5 to check the validation of the message above, and it tells me the following error messaage: [Error] KeywordSearchRequestSample_gen.xml:15:39: cvc-complex-type.3.2.2: Attribute 'id' is not allowed to appear in element 'multiRef'. [Error] KeywordSearchRequestSample_gen.xml:15:39: cvc-complex-type.3.2.2: Attribute 'soapenc:root' is not allowed to appear in element 'multiRef'. [Error] KeywordSearchRequestSample_gen.xml:15:39: cvc-complex-type.3.2.2: Attribute 'soapenv:encodingStyle' is not allowed to appear in element 'multiRef'. [Error] KeywordSearchRequestSample_gen.xml:22:48: cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'sort', because the {nillable} property of 'sort' is false. [Error] KeywordSearchRequestSample_gen.xml:23:50: cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'locale', because the {nillable} property of 'locale' is false. [Error] KeywordSearchRequestSample_gen.xml:24:49: cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'price', because the {nillable} property of 'price' is false. It seems that the SOAP Message is not vallid???? Does anyone know how to solve this problem?? Sting
begin:vcard tel;fax:886-3-5820085 tel;work:886-3-5914545 x-mozilla-html:FALSE fn;quoted-printable:=BEG=B3=D5=A4=E5 Cheng Po-wen n;quoted-printable:Cheng Po-wen;=BEG=B3=D5=A4=E5 adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] title:W110 �Ҫ� org;quoted-printable:=A4u=AC=E3=B0|=B9q=B3q=A9=D2 W=B2=D5 end:vcard
