IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  SOAP-MSG does not handle large documents

    Posted Mon February 25, 2008 11:10 PM

    Hi,

    I have currently developed a service that is handled by the default soap processor. The issue is at the end of the service when it is returning a response with a large document (16MB) it fails. With smaller documents (2MB and smaller) the service always works correctly. With the large file one of two things happens, the webMethods instance locks up or it throws a NullPointerException.

    By placing debug invocations I can see that it has successfully see that it has left my service and is obviously in the process of adding the document to the soap envelope for returning the response.

    A temporary solution I have created is to compress and base 64 encode the document before sending it back in the response. This will work for the time being but if the document grows (which it will) then eventually the solution will not be feasable.

    Is there a maximum size limit to a document that can be passed using SOAP-MSG?

    Or is there suggested alternative? eg. custom processors? (though I assume it will probably have the same issue)

    Any help would be appreciated! :slight_smile:


    #webMethods
    #soa
    #API-Management


  • 2.  RE: SOAP-MSG does not handle large documents

    Posted Tue February 26, 2008 12:00 AM

    Sorry I should have mentioned I am using webMethods 6.5.


    #webMethods
    #API-Management
    #soa


  • 3.  RE: SOAP-MSG does not handle large documents

    Posted Tue February 26, 2008 12:42 AM

    I think the “right” way to tranmit large documents to/from web services is by using Soap With Attachments or MTOM. MTOM appears to be more widely supported.

    Neither is easily supported in IS 6.5, but MTOM is supported (with a few early release kinks) in IS 7.1.1.

    MTOM or SWA should take care of transporting the large doc, but you still have to use care in creating it and avoid creating multiple copies in memory.

    Mark


    #soa
    #webMethods
    #API-Management


  • 4.  RE: SOAP-MSG does not handle large documents

    Posted Tue February 26, 2008 12:50 AM

    Thanks for the quick reply! Even though it is not easily supported in 6.5 at least now I have a direction I can investigate. :slight_smile:


    #webMethods
    #soa
    #API-Management


  • 5.  RE: SOAP-MSG does not handle large documents

    Posted Tue February 26, 2008 03:31 AM

    From the IS 7.1.1 Web Services Developer’s Guide


    #API-Management
    #soa
    #webMethods