This content has been marked as final.
Show 2 replies
-
1. Re: Obtain SOAP attachment from PostMethod
thomas.diesler Apr 11, 2008 3:13 AM (in response to anacarda)/** * The interface <code>MessageContext</code> abstracts the message * context that is processed by a handler in the <code>handle</code> * method. * * <p>The <code>MessageContext</code> interface provides methods to * manage a property set. <code>MessageContext</code> properties * enable handlers in a handler chain to share processing related * state. * * @since JAX-WS 2.0 */ public interface MessageContext extends Map<String, Object> { /** * Standard property: message direction, <code>true</code> for * outbound messages, <code>false</code> for inbound. * <p>Type: boolean */ public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound"; /** * Standard property: Map of attachments to a message for the inbound * message, key is the MIME Content-ID, value is a DataHandler. * <p>Type: java.util.Map<String,DataHandler> */ public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound"; /** * Standard property: Map of attachments to a message for the outbound * message, key is the MIME Content-ID, value is a DataHandler. * <p>Type: java.util.Map<String,DataHandler> */ public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
-
2. Re: Obtain SOAP attachment from PostMethod
anacarda Apr 13, 2008 7:10 PM (in response to anacarda)How can I get the MessageContext from an InputStream though?
The InputStream I am talking about is the one from the call from loPostMethod.getResponseBodyAsStream()...
This is because I am using a PostMethod to call / obtain the raw message back.