Announcement Announcement Module
Collapse
No announcement yet.
SoapFaultMappingExceptionResolver doesn’t generate valid fault response Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SoapFaultMappingExceptionResolver doesn’t generate valid fault response

    I use SoapFaultMappingExceptionResolver for fault response generation.
    But SoapFaultMappingExceptionResolver generates next fault response:

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="...">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring xml:lang="en">ContractAlreadyExists</faultstring>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    There is xml:lang="en" attribute in „faultstring“ element. But soap 1.1 envelope xsd (schemas.xmlsoap.org/soap/envelope/) does not explicitly allow any attributes for faulstring element.
    I have schema compliance fault when I’m testing fault response.
    Is it any spring‘s extension or bug?
    Is there any possibility to switch off „xml:lang“ attribute generation?

  • #2
    That's a bug in the schema, not spring-ws. See http://www.ws-i.org/Profiles/BasicPr...Fault_Language

    Comment

    Working...
    X