[
http://jira.codehaus.org/browse/XFIRE-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124065
]
Paul King commented on XFIRE-855:
---------------------------------
I know this is a little old, but just wondering why {{faultcode}} here is
{{soap:Server}} not {{soap:Client}}. Surely, if the incoming request is not
valid, it is an error the client has made?
> Schema validation in JAXB does not return validation errors to the client #2
> ----------------------------------------------------------------------------
>
> Key: XFIRE-855
> URL: http://jira.codehaus.org/browse/XFIRE-855
> Project: XFire
> Issue Type: Improvement
> Components: JAXB 2.0
> Affects Versions: 1.2.4
> Reporter: Frank Grupe
> Assignee: Tomasz Sztelak
> Priority: Minor
> Fix For: 1.2.5
>
> Attachments: services.xml, TestWebService.java, TestWebService.xsd
>
>
> Hi,
> this Issue should be a reopen for XFIRE-771. Perhaps there has happend a
> mistake when checking in the fix for that one?
> Because I get the same problem as described there in version 1.2.4:
> Instead of information about the nested validation Exception there appears
> only the "Unmarshal" Exception at the client side when a validation error
> occurs:
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>Could not unmarshall type.</faultstring>
> </soap:Fault>
> I'd also prefer to see something like this instead, so that the caller can
> react himself:
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'width'. One of '{"":length}' is
> expected.</faultstring>
> </soap:Fault>
> Could you please check what went wrong?
> Thanks,
> Frank
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email