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.cxf.systest.handlers;
19:
20: import java.net.MalformedURLException;
21: import java.net.URL;
22:
23: import javax.jws.HandlerChain;
24: import javax.xml.namespace.QName;
25: import javax.xml.ws.Service;
26: import javax.xml.ws.WebEndpoint;
27: import javax.xml.ws.WebServiceClient;
28: import org.apache.handlers.AddNumbers;
29:
30: /**
31: * This class was generated by the CXF 2.0-incubator-RC-SNAPSHOT
32: * Mon Jan 08 09:43:05 CST 2007
33: * Generated source version: 2.0-incubator-RC-SNAPSHOT
34: *
35: */
36:
37: @WebServiceClient(name="AddNumbersService",targetNamespace="http://apache.org/handlers",wsdlLocation="file:/D:/svn/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl")
38: @HandlerChain(file="./handlers_smallnumbers.xml",name="TestHandlerChain")
39: public class AddNumbersServiceWithAnnotation extends Service {
40:
41: private static final URL WSDL_LOCATION;
42: private static final QName SERVICE = new QName(
43: "http://apache.org/handlers", "AddNumbersService");
44: private static final QName ADDNUMBERS_PORT = new QName(
45: "http://apache.org/handlers", "AddNumbersPort");
46:
47: static {
48: URL url = null;
49: try {
50: url = new URL(
51: "file:/D:/svn/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl");
52: } catch (MalformedURLException e) {
53: e.printStackTrace();
54: }
55: WSDL_LOCATION = url;
56: }
57:
58: public AddNumbersServiceWithAnnotation(URL wsdlLocation,
59: QName serviceName) {
60: super (wsdlLocation, serviceName);
61: }
62:
63: public AddNumbersServiceWithAnnotation() {
64: super (WSDL_LOCATION, SERVICE);
65: }
66:
67: /**
68: *
69: * @return
70: * returns AddNumbersPort
71: */
72: @WebEndpoint(name="AddNumbersPort")
73: public AddNumbers getAddNumbersPort() {
74: return (AddNumbers) super .getPort(ADDNUMBERS_PORT,
75: AddNumbers.class);
76: }
77:
78: }
|