Can't validate SOAP 1.2 response
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Thu Oct 12, 2006 5:22 pm
Can't validate SOAP 1.2 response
Hi,
When I try to validate the following soap response (this envelope I copy/pasted from the SOAP spec):
I get the following errors:
The error seems to be coming from the SOAP schema. Any hints on how this can be fixed?
[/code]
When I try to validate the following soap response (this envelope I copy/pasted from the SOAP spec):
Code: Select all
<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<env:Header>
<env:Upgrade>
<env:SupportedEnvelope qname="ns1:Envelope"
xmlns:ns1="http://www.w3.org/2003/05/soap-envelope"/>
<env:SupportedEnvelope qname="ns2:Envelope"
xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/"/>
</env:Upgrade>
</env:Header>
<env:Body>
<env:Fault>
<env:Code><env:Value>env:VersionMismatch</env:Value></env:Code>
<env:Reason>
<env:Text xml:lang="en">Version Mismatch</env:Text>
</env:Reason>
</env:Fault>
</env:Body>
</env:Envelope>
Code: Select all
SystemID: http://www.w3.org/2003/05/soap-envelope/
Location: 97:52
Description: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
URL: http://www.w3.org/TR/xmlschema-1/#src-resolve
SystemID: http://www.w3.org/2003/05/soap-envelope/
Location: 97:52
Description: s4s-elt-invalid-content.1: The content of 'reasontext' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
[/code]
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Yes the errors are in the SOAP 1.2 schema. You can fix them by adding the schemaLocation attribute to the import of the xml.xsd schema in the SOAP 1.2 schema:
Without a schema location attribute the parser does not know where to go to get the xml.xsd schema file. You cannot find the SOAP 1.2 schema in the <oXygen/> installation because the current version of <oXygen/> (7.2) includes the SOAP 1.0 schema.
Regards,
Sorin
Yes the errors are in the SOAP 1.2 schema. You can fix them by adding the schemaLocation attribute to the import of the xml.xsd schema in the SOAP 1.2 schema:
Code: Select all
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2004/10/xml.xsd"/>
Regards,
Sorin
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