Results 1 to 3 of 3

Thread: example of payloadmapping/Endpoint to handle SOAP attachment and base64binary object

  1. #1
    Join Date
    Aug 2006
    Posts
    2

    Default example of payloadmapping/Endpoint to handle SOAP attachment and base64binary object

    Hi

    I need to implement a web service that takes either SOAP attachment or base64binary type object (for graphic image). I am unable to find any Spring example code to show how to handle SOAP attachment or base64type. Does anyone have an example code for the applicationcontext config file syntax and java EndpointMapping?

    Thanks
    Chuck

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    SOAP with Attachments (SwA) are supported. Every SoapMessage implementation has a methods to retrieve Attachments (getAttachments, etc.) . See http://static.springframework.org/sp...apMessage.html.

    So what you do is implement the MessageEndpointInterface. When the web service is invoked, you get a MessageContext, which you can cast to SoapMessageContext. You can get the SoapMessage request from that.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Aug 2006
    Posts
    2

    Default

    Arjen

    Thanks for your quick response. I'll try your suggestion.

    Chuck

Posting Permissions

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