uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

32.2.3 Variations due to parseEagerly

In Streaming, the timing of parsing the SOAP messages containing attachments, analysis results, and exceptions that occur if there are errors in SOAP messages vary according to the value specified in the parseEagerly in the argument of the com.sun.xml.ws.developer.StreamingAttachmentFeature class and com.sun.xml.ws.developer.StreamingAttachment annotation element.

The following table lists the parseEagerly values and variations:

Table 32-1 parseEagerly values and variations

No. parseEagerly value Timing for parsing the SOAP messages Exception thrown if there is any error in SOAP messages
1 true When a SOAP message containing an attachment is unmarshalled. org.jvnet.mimepull.MIMEParsingException
2 false When a streamed attachment is operated. java.io.IOException

Specify true as the parseEagerly value when an error in the SOAP message containing an attachment is detected not in user applications, but while un-marshaling.