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.mtom;
20:
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: import org.test.mtom.ImageDepot;
29:
30: @WebService(name="MtomSample",targetNamespace="http://org/apache/axis2/jaxws/sample/mtom",wsdlLocation="META-INF/ImageDepot.wsdl")
31: public interface MtomSample {
32:
33: /**
34: *
35: * @param input
36: * @return
37: * returns org.test.mtom.ImageDepot
38: */
39: @WebMethod
40: @WebResult(name="output",targetNamespace="urn://mtom.test.org")
41: @RequestWrapper(localName="sendImage",targetNamespace="urn://mtom.test.org",className="org.test.mtom.SendImage")
42: @ResponseWrapper(localName="sendImageResponse",targetNamespace="urn://mtom.test.org",className="org.test.mtom.SendImageResponse")
43: public ImageDepot sendImage(
44: @WebParam(name="input",targetNamespace="urn://mtom.test.org")
45: ImageDepot input);
46:
47: /**
48: *
49: * @param input
50: * @return
51: * returns org.test.mtom.ImageDepot
52: */
53: @WebMethod
54: @WebResult(name="output",targetNamespace="urn://mtom.test.org")
55: @RequestWrapper(localName="sendText",targetNamespace="urn://mtom.test.org",className="org.test.mtom.SendText")
56: @ResponseWrapper(localName="sendTextResponse",targetNamespace="urn://mtom.test.org",className="org.test.mtom.SendTextResponse")
57: public ImageDepot sendText(
58: @WebParam(name="input",targetNamespace="urn://mtom.test.org")
59: byte[] input);
60:
61: }
|