You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/05/04 07:46:25 UTC

svn commit: r399555 - /webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html

Author: saminda
Date: Wed May  3 22:46:24 2006
New Revision: 399555

URL: http://svn.apache.org/viewcvs?rev=399555&view=rev
Log:
minor change to mtom_guide.html 

Modified:
    webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html

Modified: webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html?rev=399555&r1=399554&r2=399555&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html (original)
+++ webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html Wed May  3 22:46:24 2006
@@ -346,11 +346,15 @@
 <ul>
   <li><strong>Sample service which accepts a SwA message</strong></li>
 </ul>
-<source><pre>public class EchoSwA {
+<source><pre>
+public class EchoSwA {
     private MessageContext msgcts;
 
-    public void init(MessageContext msgcts) {
-        this.msgcts = msgcts;
+    public EchoSwA() {
+    }
+
+    public void setOperationContext(OperationContext oc) throws AxisFault {
+        msgcts = oc.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
     }
 
     public OMElement echoAttachment(OMElement omEle) {
@@ -370,7 +374,8 @@
         omEle.addChild(textNode);
         return omEle;
     }
-}</pre>
+}
+</pre>
 </source>
 <p>MTOM specification is designed to be backward compatible with the SOAP
 with Attachments specification. Even though the representation is different,