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: */
19: package org.apache.axis2.jaxws.client.soapaction;
20:
21: import javax.jws.WebMethod;
22: import javax.jws.WebParam;
23: import javax.jws.WebResult;
24: import javax.jws.WebService;
25: import javax.jws.soap.SOAPBinding;
26: import javax.jws.soap.SOAPBinding.ParameterStyle;
27: import javax.xml.ws.RequestWrapper;
28: import javax.xml.ws.ResponseWrapper;
29:
30: @WebService(name="BookStore",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction")
31: public interface BookStore {
32:
33: /**
34: *
35: * @param item
36: * @return
37: * returns float
38: */
39: @WebMethod
40: @WebResult(name="price",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction")
41: @RequestWrapper(localName="getPrice",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",className="org.apache.axis2.jaxws.client.soapaction.GetPriceType")
42: @ResponseWrapper(localName="getPriceResponse",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",className="org.apache.axis2.jaxws.client.soapaction.GetPriceResponseType")
43: public float getPrice(
44: @WebParam(name="item",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction")
45: String item);
46:
47: /**
48: *
49: * @param item
50: * @return
51: * returns float
52: */
53: @WebMethod(action="http://jaxws.axis2.apache.org/client/soapaction/getPrice")
54: @WebResult(name="price",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction")
55: @RequestWrapper(localName="getPriceWithAction",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",className="org.apache.axis2.jaxws.client.soapaction.GetPriceType")
56: @ResponseWrapper(localName="getPriceWithActionResponse",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",className="org.apache.axis2.jaxws.client.soapaction.GetPriceResponseType")
57: public float getPriceWithAction(
58: @WebParam(name="item",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction")
59: String item);
60:
61: /**
62: *
63: * @param item
64: * @return
65: * returns int
66: */
67: @WebMethod
68: @WebResult(name="inventory",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",partName="inventory")
69: @SOAPBinding(parameterStyle=ParameterStyle.BARE)
70: public int getInventory(
71: @WebParam(name="item",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",partName="item")
72: String item);
73:
74: /**
75: *
76: * @param item
77: * @return
78: * returns int
79: */
80: @WebMethod(action="http://jaxws.axis2.apache.org/client/soapaction/getInventory")
81: @WebResult(name="inventoryWithAction",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",partName="inventory")
82: @SOAPBinding(parameterStyle=ParameterStyle.BARE)
83: public int getInventoryWithAction(
84: @WebParam(name="itemWithAction",targetNamespace="http://jaxws.axis2.apache.org/client/soapaction",partName="item")
85: String item);
86:
87: }
|