01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.hello_world_soap_http;
19:
20: import javax.jws.WebService;
21:
22: import org.apache.hello_world_rpclit.GreeterRPCLit;
23: import org.apache.hello_world_rpclit.types.MyComplexStruct;
24:
25: @WebService(name="GreeterRPCLit",serviceName="SOAPServiceRPCLit",portName="SoapPortRPCLit",targetNamespace="http://apache.org/hello_world_rpclit",endpointInterface="org.apache.hello_world_rpclit.GreeterRPCLit",wsdlLocation="testutils/hello_world_rpc_lit.wsdl")
26: public class RPCLitGreeterImpl implements GreeterRPCLit {
27:
28: public String greetMe(String me) {
29: System.out.println("Executing operation greetMe");
30: System.out.println("Message received: " + me + "\n");
31: return "Hello " + me;
32: }
33:
34: public String sayHi() {
35: System.out.println("Executing operation sayHi" + "\n");
36: return "Bonjour";
37: }
38:
39: public MyComplexStruct sendReceiveData(MyComplexStruct in) {
40: System.out.println("Executing operation sendReceiveData");
41: System.out
42: .println("Received struct with values :\nElement-1 : "
43: + in.getElem1() + "\nElement-2 : "
44: + in.getElem2() + "\nElement-3 : "
45: + in.getElem3() + "\n");
46: return in;
47: }
48:
49: public String greetUs(String you, String me) {
50: System.out.println("Executing operation greetUs");
51: System.out.println("Message received: you are " + you + " I'm "
52: + me + "\n");
53: return "Hello " + you + " and " + me;
54: }
55:
56: }
|