Hi, all:

I tried check the validation of request sent to Amazon,
the following is the request that Axis client sent to Amazon:
(I've turned off the multiref and send_xsi, and
  added  xsi:type="ns1:KeywordRequest" to KeywordSearchRequest element)

<?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 xsi:type="ns1:KeywordRequest">
    <keyword>dog</keyword>
    <page>1</page>
    <mode>book</mode>
    <tag>webservices-30</tag>
    <type>lite</type>
    <devtag>your-dev-tag</devtag>
    <sort xsi:nil="true"/>
    <locale xsi:nil="true"/>
    <price xsi:nil="true"/>
   </KeywordSearchRequest>
  </ns1:KeywordSearchRequest>
 </soapenv:Body>
</soapenv:Envelope>


and the following is the schema for KeywordRequest:

<xsd:complexType name="KeywordRequest">
  <xsd:all>
    <xsd:element name="keyword" type="xsd:string"/>
    <xsd:element name="page" type="xsd:string"/>
    <xsd:element name="mode" type="xsd:string"/>
    <xsd:element name="tag" type="xsd:string"/>
    <xsd:element name="type" type="xsd:string"/>
    <xsd:element name="devtag" type="xsd:string"/>
    <xsd:element name="sort" type="xsd:string" minOccurs="0"/>
    <xsd:element name="locale" type="xsd:string" minOccurs="0"/>
    <xsd:element name="price" type="xsd:string" minOccurs="0"/>
  </xsd:all>
</xsd:complexType>

I use Xerces 2.5 and its XNI(Grammer pool or something...) to check the
validation,
and it tells me the following error message:

[Error] KeywordSearchRequestSample_gen_no_multiRef.xml:16:27:
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.


Does anyone know how to solve this problem?

THANX

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

Reply via email to