axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sami...@apache.org
Subject svn commit: r399555 - /webservices/axis2/trunk/java/xdocs/1_0/mtom-guide.html
Date Thu, 04 May 2006 05:46:25 GMT
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,



Mime
View raw message