Announcement Announcement Module
Collapse
No announcement yet.
customization of SOAP fault Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • customization of SOAP fault

    My wsdl operation donot have wsdl:fault defined as a complex type. No Jaxb object class for it, that can be marshaled.XSD donot have any Fault Element.

    I have a requirement to produce a fault message like this:
    (<?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>590008</faultstring>
    <detail>
    <faultException value="590008" xmlns="urn:emg:insight:datasets:v1_0">
    <type>Server</type>
    <message><![CDATA[Unable to retrieve corporate ID.]]></message>
    <operation>GetDatasetFeedDocumentsRequest</operation>
    </faultException>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>)

    currently iam using fault annotations on my exception class,we are getting
    fault code and fault string message in the SOAP fault.but i want to have SOAP fault detail messages too.
    any help on customization of generated faults?

  • #2
    Try this http://blog.krecan.net/2009/05/23/sp...-fault-detail/

    Comment


    • #3
      Thank you for sharing this! Very useful.

      Comment

      Working...
      X