Trying to send a huge result set as a SOAP response

We are trying to send a huge result set as SOAP response, but keep getting OutOfMemory. So we think if we can write the result set in XML format, then save to a file (either compress or without depends on our customer preference, then we can attach it as a SOAP response. Can this be done and how? Any help will really appreciated.

    Requires Free Membership to View

First off, you need to use a SOAP implementation that uses a stream-based parser to parse the attachments. If your SOAP implementation doesn't support stream-based parsing, you'll need to switch to one that does.

You can send attachments with your messages using either MIME or DIME. You need to find out which (if any) your SOAP implementation supports (and that of your customer!). Most implementations support MIME, although a growing number of implementations now also support DIME. MS SOAP and .NET only support DIME. Look through your product documentation. You should be able to find information on using attachments with your product. (It's handled differently by every product.) If your product doesn't provide documentation, try using Google to find some samples.

This was first published in January 2003

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.