Results 1 to 4 of 4

Thread: Extension of SoapFaultMappingExceptionResolver

  1. #1
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default Extension of SoapFaultMappingExceptionResolver

    Hi,

    i want to add a bean to the details element of an soap fault.


    I added the marshaller bean to my SoapFaultMappingExceptionResolver, but the marshaller has only the method

    marshaller.marshal(faultType, <RESULT>);

    and the the SoapFault method

    soapFault.addFaultDetail().addFaultDetailElement(< QNAME>)

    . Result is only an interface. What element do i have to create? Should i use the

    soapContext.getSoapResponse().getPayloadResult()

    element for that?
    How do i transform my Result element to a QName?

    Cheers,

    Ingo

  2. #2
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default

    Arjen, can you please take a look at my questions?

    Ingo

  3. #3
    Join Date
    Aug 2006
    Posts
    13

    Default

    It might not be an exact answer to your question, but this thread might help:
    Wanting to return the message from a custom Exception as a SOAP Fault string.
    Following that advice, I've been able to marshal and return whatever fault details I wanted.

  4. #4
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default

    Hi,

    thank you for your answer. I didn't understand the way of creating my my xml-string. I hope you can help me.

    Arjen used this line:
    Code:
    Source elSource = new StringSource("<message>My application didn't work</message><errorcode>1001</errorcode>");
    I've an error-details-bean defined in my WSDL. I instanciate it and want to transform it to an Source element. But how can i do thins with spring?

    Ingo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •