cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r442433 - in /incubator/cxf/trunk/testutils/src/main: java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java resources/wsdl/hello_world_rpc_lit.wsdl
Date Tue, 12 Sep 2006 03:22:44 GMT
Author: tli
Date: Mon Sep 11 20:22:44 2006
New Revision: 442433

URL: http://svn.apache.org/viewvc?view=rev&rev=442433
Log:
add RPC style test resource

Added:
    incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java
  (with props)
Modified:
    incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_rpc_lit.wsdl

Added: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java?view=auto&rev=442433
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java
(added)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java
Mon Sep 11 20:22:44 2006
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.hello_world_soap_http;
+
+import javax.jws.WebService;
+
+import org.apache.hello_world_rpclit.GreeterRPCLit;
+import org.apache.hello_world_rpclit.types.MyComplexStruct;
+
+@WebService(name = "GreeterRPCLit", serviceName = "SOAPServiceRPCLit", 
+                portName = "SoapPortRPCLit",
+                targetNamespace = "http://apache.org/hello_world_rpclit",
+                endpointInterface = "org.apache.hello_world_rpclit.GreeterRPCLit")
+                
+public class RPCLitGreeterImpl implements GreeterRPCLit {
+
+    
+
+    public String greetMe(String me) {
+        System.out.println("Executing operation greetMe");
+        System.out.println("Message received: " + me + "\n");
+        return "Hello " + me;
+    }
+
+    public String sayHi() {
+        System.out.println("Executing operation sayHi" + "\n");
+        return "Bonjour";
+    }
+
+    public MyComplexStruct sendReceiveData(MyComplexStruct in) {
+        System.out.println("Executing operation sendReceiveData");
+        System.out.println("Received struct with values :\nElement-1 : " + in.getElem1()
+ "\nElement-2 : "
+                           + in.getElem2() + "\nElement-3 : " + in.getElem3() + "\n");
+        return in;
+    }
+
+
+}

Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/RPCLitGreeterImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_rpc_lit.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_rpc_lit.wsdl?view=diff&rev=442433&r1=442432&r2=442433
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_rpc_lit.wsdl (original)
+++ incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_rpc_lit.wsdl Mon Sep
11 20:22:44 2006
@@ -71,7 +71,7 @@
         </wsdl:operation>
         <wsdl:operation name="sendReceiveData">
             <wsdl:input message="tns:sendReceiveDataRequest" name="SendReceiveDataRequest"/>
-        <wsdl:output message="tns:sendReceiveDataResponse" name="SendReceiveDataResponse"/>
+        	<wsdl:output message="tns:sendReceiveDataResponse" name="SendReceiveDataResponse"/>
         </wsdl:operation>
     </wsdl:portType>
     



Mime
View raw message