Validation of a SOAP-Message does not work
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 1
- Joined: Tue Sep 13, 2011 4:37 pm
Validation of a SOAP-Message does not work
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?
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Validation of a SOAP-Message does not work
Hi,
I'm sorry but I don't quite understand everything.
What is this construct?
The xmlns attribute defines a binding for the default namespace of the current element. Are you referring to the xsi:schemaLocation attribute which specifies the schema which should be used to validate the XML file?
Probably the SOAP server also needs to know the XML Schema locations in order to validate the XML on its side. Is this related in any way to WSDL?
Regards,
Radu
I'm sorry but I don't quite understand everything.
What is this construct?
Code: Select all
xmlns="master.xsd"
Probably the SOAP server also needs to know the XML Schema locations in order to validate the XML on its side. Is this related in any way to WSDL?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service