Dear all:
I try to validate a SOAP message using
libxml2-2.6.20/.libs/lt-testSchemas sample.xsd sample.xml
an error message occurred,
/sample.xsd:3: element complexType: Schemas parser error : complex type 'ArrayOfstring',
attribute 'base': The QName value '{
http://schemas.xmlsoap.org/soap/encoding/}Array'
does not resolve to a(n) simple type definition.
Is there anything wrong? How should I do?
Any suggestion is appreciated.
BRs.
Gloria
the SOAP message is generated by SOAP container Axis and is as following:
**************************************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
<soap:Header>
</soap:Header>
<soap:Body
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
wsu:Id="Id-863a577c-ff04-4a53-a474-a18ab05149c0" xmlns:wsu="
http://sche
<tns:addInt>
<in0 xsi:type="xsd:int">Gloria test </in0>
<in1 xsi:type="xsd:int">ga aa aa a</in1>
</tns:addInt>
</soap:Body>
</soap:Envelope>
Using schema as following:
**************************************************************************************
<schema xmlns="http://www.w3.org/2001/XMLSchema
" targetNamespace="http://so
<import namespace = "http://schemas.xmlsoap.org/soap/encoding
<complexType name="ArrayOfstring">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOfint">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="int[]"/>
</restriction>
</complexContent>
</complexType>
</schema>