axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r368018 - in /webservices/axis2/trunk/java/modules/samples/src/sample/axisversion: META-INF/services.xml Version.java
Date Wed, 11 Jan 2006 12:54:49 GMT
Author: ajith
Date: Wed Jan 11 04:54:42 2006
New Revision: 368018

URL: http://svn.apache.org/viewcvs?rev=368018&view=rev
Log:
Another last minute change!The standard version service shipped with the webapp was generating
a wrong WSDL.
1. Changed the services.xml to include the RPCMessageReceiver
2. Changed the method signature for the getVersion in Version.java 

Modified:
    webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/META-INF/services.xml
    webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/Version.java

Modified: webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/META-INF/services.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/META-INF/services.xml?rev=368018&r1=368017&r2=368018&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/META-INF/services.xml
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/META-INF/services.xml
Wed Jan 11 04:54:42 2006
@@ -4,5 +4,6 @@
     </description>
     <parameter name="ServiceClass" locked="false">sample.axisversion.Version</parameter>
     <operation name="getVersion">
+    <messageReceiver  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
     </operation>
 </service>

Modified: webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/Version.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/Version.java?rev=368018&r1=368017&r2=368018&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/Version.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/sample/axisversion/Version.java Wed Jan
11 04:54:42 2006
@@ -23,13 +23,10 @@
 
 public class Version {
 
-    public OMElement getVersion() {
-        OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("http://org.apache.axis2/xsd", "ns1");
-        OMElement version = fac.createOMElement("getVersionResponse", omNs);
-        version.addChild(
-                fac.createText(version,
-                        "Hello I am Axis2 version service , My version is " + org.apache.axis2.Version.getVersionText()));
-        return version;
+
+    public String getVersion() {
+          return   "Hello I am Axis2 version service , My version is " + org.apache.axis2.Version.getVersionText();
     }
+
+
 }



Mime
View raw message