[prev in list] [next in list] [prev in thread] [next in thread]
List: soap-user
Subject: Re: schema building
From: Anne Thomas Manes <atmanes () gmail ! com>
Date: 2005-06-28 12:25:34
Message-ID: bf414ee6050628052577e5cc29 () mail ! gmail ! com
[Download RAW message or body]
Add this line to your complexType definition after the </sequence>:
<xs:anyAttribute namespace="##other" processContents="lax"/>
Anne
On 6/27/05, csj <johnsocs@clarkson.edu> wrote:
>
>
> 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:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> attribute from the doSpellingSuggestion 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: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:doSpellingSuggestion
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1="urn:GoogleSearch">
> <key xsi:type="xsd:string">XXXXXXXXXXXXXXXXXXXXXXXx</key>
> <phrase xsi:type="xsd:string">rabbbit</phrase>
> </ns1:doSpellingSuggestion>
>
> </soapenv:Body>
> </soapenv:Envelope>
>
> ------------ Schema ---------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> targetNamespace="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns1="urn:GoogleSearch"
> version="1.0">
>
> <xs:import namespace="urn:GoogleSearch"
> schemaLocation="GoogledoSpellingSuggestion.xsd" />
>
> <xs:element name="Envelope">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="Body">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="ns1:doSpellingSuggestion"/>
> </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:GoogleSearch"
> xmlns:ns1="urn:GoogleSearch"
> version="1.0">
>
> <xsd:element name="doSpellingSuggestion"
> type="ns1:doSpellingSuggestion"/>
>
> <xsd:complexType name="doSpellingSuggestion">
> <xsd:sequence>
> <xsd:element name="key" type="xsd:string"/>
> <xsd:element name="phrase" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
>
> </xsd:schema>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic