You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/01/07 05:40:11 UTC

svn commit: r366654 - /webservices/axis2/trunk/java/xdocs/0_94/mtom-guide.html

Author: deepal
Date: Fri Jan  6 20:40:07 2006
New Revision: 366654

URL: http://svn.apache.org/viewcvs?rev=366654&view=rev
Log:
update mtom-guide.html to cope with Service client changes

Modified:
    webservices/axis2/trunk/java/xdocs/0_94/mtom-guide.html

Modified: webservices/axis2/trunk/java/xdocs/0_94/mtom-guide.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/0_94/mtom-guide.html?rev=366654&r1=366653&r2=366654&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/0_94/mtom-guide.html (original)
+++ webservices/axis2/trunk/java/xdocs/0_94/mtom-guide.html Fri Jan  6 20:40:07 2006
@@ -190,11 +190,11 @@
 
 <p>Set the "enableMTOM" property in the call to true, when sending
 messages.</p>
-<source><pre>        Call call = new Call();
+<source><pre>        ServiceClient serviceClient = new ServiceClient ();
         Options options = new Options();
         options.setTo(targetEPR);
         options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
-        call.setClientOptions(options);</pre>
+        serviceClient .setOptions(options);</pre>
 </source>
 <p>When this property is set to true any SOAP envelope which contains
 optimizable content (OMText nodes containing binary content with optimizable
@@ -204,11 +204,11 @@
 be a policy saying, all the request should be optimized eventhough there are
 any optimized contents. To support this phenomenon there is an entry called
 "forced mime" which has to be set as</p>
-<source><pre>        Call call = new Call();
+<source><pre>        ServiceClient serviceClient = new ServiceClient ();
         Options options = new Options();
         options.setTo(targetEPR);
         options.setProperty(Constants.Configuration.FORCE_MIME, Constants.VALUE_TRUE);
-        call.setClientOptions(options);</pre>
+        serviceClient.setOptions(options);</pre>
 </source>
 <p></p>