Validation of a SOAP-Message does not work
Posted: Tue Sep 13, 2011 5:33 pm
My xml's should validate against xsd's with a structure like:
There is no problem if I validate the pure xml.
Now if this xml is sent in a SOAP-Message and I want to validate this SOAP-Message, it fails.
Actually I think it should work with the schemas.xmlsoap.org-soap.xsd only.
I found a hack enlarging the schemas.xmlsoap.org-soap.xsd by <import ...> tags. This works so far.
But in my opinion this should not be necessary.
Is there any solution to avoid my hack?
Code: Select all
master.xsd
|- slave1.xsd
|-- slave2.xsd
Code: Select all
<myDS xmlns="master.xsd">
...
<mySS xmlns="slave1.xsd">
...
</mySS>
...
</myDS>
Code: Select all
<s:Envelope ...>
<s:Header>...</s:Header>
<s:Body ...>
<myDS xmlns="master.xsd">
...
<mySS xmlns="slave1.xsd">
...
</mySS>
...
</myDS>
</s:Body>
</s:Envelope>
I found a hack enlarging the schemas.xmlsoap.org-soap.xsd by <import ...> tags. This works so far.
But in my opinion this should not be necessary.
Is there any solution to avoid my hack?