Attachment optimization using JAXWS SOAP Binding properties for MTOM
--------------------------------------------------------------------
Key: AXIS2-1623
URL: http://issues.apache.org/jira/browse/AXIS2-1623
Project: Apache Axis 2.0 (Axis2)
Issue Type: Improvement
Components: jaxws
Affects Versions: 1.1
Environment: Windows
Reporter: Samuel Isokpunwu
Priority: Critical
Per current support, JAXWS client can only enable attachment optimization by
setting the ENABLEMTOM variable to "true" using the setMTOMEnabled() method
in the SOAPBinding API.
This enhancement will give client an alternate way to enable optimization just
by specifying the SOAP Binding properties for MTOM as the binding protocol.
Currently, using Dispatch invocation for example, JAXWS client can only enable
attachment optimization by doing the following--
{
------------------
service.addPort(QNAME_PORT, SOAPBinding.SOAP11HTTP_BINDING, URL_ENDPOINT);
-------------------
-------------------
SOAPBinding binding = (SOAPBinding) dispatch.getBinding();
binding.setMTOMEnabled(true);
}
With this enhancement, JAXWS client can also enable optimization just by
specifying the SOAP binding property for MTOM --
{
------------------
service.addPort(QNAME_PORT, SOAPBinding.SOAP11HTTP_MTOM_BINDING,
URL_ENDPOINT);
-------------------
-------------------
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]