All -
I am very stuck on building a schema for the following xml message. I
feel I'm very close as the message validates if I remove the
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
attribute from the doSpellingSugge stion element. Any help/pointers for
describing the encodingStyle attribute in my schema would be great.
Any help on this would be great.
Thanks.
-------------- Message -------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe
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:doSpelling Suggestion
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="urn: GoogleSearch">
<key xsi:type="xsd:s tring">QLgFC0VQ FHJNq8RfD6sDbGC QD6710PlS</key>
<phrase xsi:type="xsd:s tring">rabbbit</phrase>
</ns1:doSpellingS uggestion>
</soapenv:Body>
</soapenv:Envelop e>
------------ Schema ---------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefa ult="qualified"
targetNamespace ="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:ns1="urn: GoogleSearch"
version="1.0">
<xs:import namespace="urn: GoogleSearch"
schemaLocation= "GoogledoSpelli ngSuggestion.xs d" />
<xs:element name="Envelope" >
<xs:complexType >
<xs:sequence>
<xs:element name="Body">
<xs:complexType >
<xs:sequence>
<xs:element ref="ns1:doSpel lingSuggestion"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
---------------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/encoding/"
targetNamespace ="urn:GoogleSea rch"
xmlns:ns1="urn: GoogleSearch"
version="1.0">
<xsd:element name="doSpellin gSuggestion"
type="ns1:doSpe llingSuggestion "/>
<xsd:complexTyp e name="doSpellin gSuggestion">
<xsd:sequence >
<xsd:element name="key" type="xsd:strin g"/>
<xsd:element name="phrase" type="xsd:strin g"/>
</xsd:sequence>
</xsd:complexType >
</xsd:schema>