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.greeter_control;
19:
20: import javax.jws.Oneway;
21: import javax.jws.WebMethod;
22: import javax.jws.WebParam;
23: import javax.jws.WebResult;
24: import javax.jws.WebService;
25: import javax.xml.ws.RequestWrapper;
26: import javax.xml.ws.ResponseWrapper;
27:
28: @WebService(name="Greeter",targetNamespace="http://apache.org/greeter_control")
29: public interface Greeter {
30:
31: /**
32: *
33: * @return
34: * returns java.lang.String
35: */
36: @WebMethod
37: @WebResult(name="responseType",targetNamespace="http://apache.org/greeter_control/types")
38: @RequestWrapper(localName="sayHi",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.SayHi")
39: @ResponseWrapper(localName="sayHiResponse",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.SayHiResponse")
40: public String sayHi();
41:
42: /**
43: *
44: * @param requestType
45: * @return
46: * returns java.lang.String
47: */
48: @WebMethod
49: @WebResult(name="responseType",targetNamespace="http://apache.org/greeter_control/types")
50: @RequestWrapper(localName="greetMe",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.GreetMe")
51: @ResponseWrapper(localName="greetMeResponse",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.GreetMeResponse")
52: public String greetMe(
53: @WebParam(name="requestType",targetNamespace="http://apache.org/greeter_control/types")
54: String requestType);
55:
56: /**
57: *
58: * @param requestType
59: */
60: @WebMethod
61: @Oneway
62: @RequestWrapper(localName="greetMeOneWay",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.GreetMeOneWay")
63: public void greetMeOneWay(
64: @WebParam(name="requestType",targetNamespace="http://apache.org/greeter_control/types")
65: String requestType);
66:
67: /**
68: *
69: * @throws PingMeFault
70: */
71: @WebMethod
72: @RequestWrapper(localName="pingMe",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.PingMe")
73: @ResponseWrapper(localName="pingMeResponse",targetNamespace="http://apache.org/greeter_control/types",className="org.apache.greeter_control.types.PingMeResponse")
74: public void pingMe() throws PingMeFault;
75:
76: }
|