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.sample.faults;
20:
21: import java.util.concurrent.Future;
22:
23: import javax.jws.WebMethod;
24: import javax.jws.WebParam;
25: import javax.jws.WebResult;
26: import javax.jws.WebService;
27: import javax.xml.ws.AsyncHandler;
28: import javax.xml.ws.RequestWrapper;
29: import javax.xml.ws.Response;
30: import javax.xml.ws.ResponseWrapper;
31:
32: import org.test.faults.FaultyWebServiceResponse;
33:
34: @WebService(name="FaultyWebServicePortType",targetNamespace="http://org/test/faults")
35: public interface FaultyWebServicePortType {
36:
37: /**
38: *
39: * @param arg1
40: * @param arg0
41: * @return
42: * returns int
43: * @throws FaultyWebServiceFault_Exception
44: */
45: @WebMethod
46: @WebResult(targetNamespace="http://org/test/faults")
47: @RequestWrapper(localName="faultyWebService",targetNamespace="http://org/test/faults",className="org.test.faults.FaultyWebService")
48: @ResponseWrapper(localName="faultyWebServiceResponse",targetNamespace="http://org/test/faults",className="org.test.faults.FaultyWebServiceResponse")
49: public int faultyWebService(
50: @WebParam(name="arg0",targetNamespace="http://org/test/faults")
51: int arg0) throws FaultyWebServiceFault_Exception;
52:
53: /**
54: *
55: * @param asyncHandler
56: * @param arg0
57: * @return
58: * returns java.util.concurrent.Future<? extends java.lang.Object>
59: */
60: @WebMethod(operationName="faultyWebService")
61: @RequestWrapper(localName="faultyWebService",targetNamespace="http://org/test/faults",className="org.test.faults.FaultyWebService")
62: @ResponseWrapper(localName="faultyWebServiceResponse",targetNamespace="http://org/test/faults",className="org.test.faults.FaultyWebServiceResponse")
63: public Future<?> faultyWebServiceAsync(
64: @WebParam(name="arg0",targetNamespace="http://org/test/faults")
65: int arg0,
66: @WebParam(name="asyncHandler",targetNamespace="")
67: AsyncHandler<FaultyWebServiceResponse> asyncHandler);
68:
69: /**
70: *
71: * @param arg0
72: * @return
73: * returns javax.xml.ws.Response<org.test.faults.FaultyWebServiceResponse>
74: */
75: @WebMethod(operationName="faultyWebService")
76: @RequestWrapper(localName="faultyWebService",targetNamespace="http://org/test/faults",className="org.test.faults.FaultyWebService")
77: @ResponseWrapper(localName="faultyWebServiceResponse",targetNamespace="http://org/test/faults",className="org.test.faults.FaultyWebServiceResponse")
78: public Response<FaultyWebServiceResponse> faultyWebServiceAsync(
79: @WebParam(name="arg0",targetNamespace="http://org/test/faults")
80: int arg0);
81:
82: }
|