cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: SOAP vs REST XML Schema Validation
Date Wed, 24 Jun 2009 19:47:15 GMT

Any chance you can capture the two soap messages (soap and rest) as well as 
attach the schema? (and/or the wsdl for the soap service)   That MAY be able 
to help diagnose why.


Dan

On Wed June 24 2009 1:59:43 pm Eric Hodges wrote:
> I'm developing SOAP and REST web services that do the same thing.  I'm
> trying to share the same XSD schema for the message objects, and I'm trying
> to use schema validation.
>
> The REST validation works as expected, but the SOAP validation complains
> like this:
>
>   "Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
> Invalid content was found starting with element 'Site'. One of
> '{"http://www.usdataworks.com/realTimePayments/":Site}' is expected."
>
> Why is SOAP expecting a namespace on that element when REST isn't?
>
> Is there some way to tell SOAP not to expect a namespace?
>
> Thanks.

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message