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.ws.axis2.tests;
20:
21: import javax.xml.namespace.QName;
22: import javax.xml.ws.Service;
23: import javax.xml.ws.WebEndpoint;
24: import javax.xml.ws.WebServiceClient;
25: import java.net.MalformedURLException;
26: import java.net.URL;
27:
28: /** This class was generated by the JAXWS SI. JAX-WS RI 2.0-b26-ea3 Generated source version: 2.0 */
29: @WebServiceClient(name="EchoService",targetNamespace="http://ws.apache.org/axis2/tests",wsdlLocation="\\work\\apps\\eclipse\\workspace\\axis2-live\\modules\\jaxws\\test-resources\\wsdl\\WSDLTests.wsdl")
30: public class EchoService extends Service {
31:
32: private final static URL WSDL_LOCATION;
33: private final static QName ECHOSERVICE = new QName(
34: "http://ws.apache.org/axis2/tests", "EchoService");
35: private final static QName ECHOPORT = new QName(
36: "http://ws.apache.org/axis2/tests", "EchoPort");
37:
38: static {
39: URL url = null;
40: try {
41: url = new URL(
42: "file:/C:/work/apps/eclipse/workspace/axis2-live/modules/jaxws/test-resources/wsdl/WSDLTests.wsdl");
43: } catch (MalformedURLException e) {
44: e.printStackTrace();
45: }
46: WSDL_LOCATION = url;
47: }
48:
49: public EchoService(URL wsdlLocation, QName serviceName) {
50: super (wsdlLocation, serviceName);
51: }
52:
53: public EchoService() {
54: super (WSDL_LOCATION, ECHOSERVICE);
55: }
56:
57: /** @return returns EchoPort */
58: @WebEndpoint(name="EchoPort")
59: public EchoPort getEchoPort() {
60: return (EchoPort) super .getPort(ECHOPORT, EchoPort.class);
61: }
62:
63: }
|