[jboss-user] [JBoss Web Services] - SchemaValidation error
Martin Sarabura
do-not-reply at jboss.com
Fri Apr 16 11:14:33 EDT 2010
Martin Sarabura [http://community.jboss.org/people/steeqs4] created the discussion
"SchemaValidation error"
To view the discussion, visit: http://community.jboss.org/message/537998#537998
--------------------------------------------------------------
I am testing schema validation. When I send in a request to the web service I get this error back:
org.xml.sax.SAXParseException: s4s-elt-schema-ns: The namespace of element 'definitions' must be from the schema namespace, ' http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema'.
Not true! The namespace of element 'definitions' is in fact " http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/", and if I use the xml schema namespace then wsimport fails - I'm using top-down web service development. I confirmed that I am using namespaces exactly as they are being used in the schemavalidation demo http://jbossws.jboss.org/mediawiki/index.php?title=SchemaValidation_Demo http://jbossws.jboss.org/mediawiki/index.php?title=SchemaValidation_Demo
Does anybody have a recommendation? FYI here is the <definitions> tag:
<definitions name="Integrity_2010Service"
targetNamespace=" http://webservice.mks.com/2010/Integrity http://webservice.mks.com/2010/Integrity"
xmlns=" http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"
xmlns:ns2=" http://webservice.mks.com/2010/Integrity/fault http://webservice.mks.com/2010/Integrity/fault"
xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/ http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns=" http://webservice.mks.com/2010/Integrity http://webservice.mks.com/2010/Integrity"
xmlns:xsd=" http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema"
xmlns:ns3=" http://www.w3.org/2005/05/xmlmime http://www.w3.org/2005/05/xmlmime">
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537998#537998]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100416/397326f8/attachment.html
More information about the jboss-user
mailing list