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:
20: package org.apache.axis2.jaxws.sample.parallelasync.server;
21:
22: import java.io.File;
23: import java.net.MalformedURLException;
24: import java.net.URL;
25:
26: import javax.xml.namespace.QName;
27: import javax.xml.ws.Service;
28: import javax.xml.ws.WebEndpoint;
29: import javax.xml.ws.WebServiceClient;
30:
31: /**
32: * This class was generated by the JAXWS SI.
33: * JAX-WS RI 2.0.1-jaxws-rearch-2005-nightly_2006-08-16_02-32-03-M1
34: * Generated source version: 2.0
35: *
36: */
37: @WebServiceClient(name="AsyncService",targetNamespace="http://org/test/parallelasync",wsdlLocation="async_doclitwr.wsdl")
38: public class AsyncService extends Service {
39:
40: private final static URL ASYNCSERVICE_WSDL_LOCATION;
41: private static String wsdlLocation = "/test/org/apache/axis2/jaxws/sample/parallelasync/server/META-INF/async_doclitwr.wsdl";
42: static {
43: URL url = null;
44: try {
45: try {
46: String baseDir = new File(System.getProperty("basedir",
47: ".")).getCanonicalPath();
48: wsdlLocation = new File(baseDir + wsdlLocation)
49: .getAbsolutePath();
50: } catch (Exception e) {
51: e.printStackTrace();
52: }
53: File file = new File(wsdlLocation);
54: url = file.toURL();
55: } catch (MalformedURLException e) {
56: e.printStackTrace();
57: }
58: ASYNCSERVICE_WSDL_LOCATION = url;
59: }
60:
61: public AsyncService(URL wsdlLocation, QName serviceName) {
62: super (wsdlLocation, serviceName);
63: }
64:
65: public AsyncService() {
66: super (ASYNCSERVICE_WSDL_LOCATION, new QName(
67: "http://org/test/parallelasync", "AsyncService"));
68: }
69:
70: /**
71: *
72: * @return
73: * returns AsyncPort
74: */
75: @WebEndpoint(name="AsyncPort")
76: public AsyncPort getAsyncPort() {
77: return (AsyncPort) super .getPort(new QName(
78: "http://org/test/parallelasync", "AsyncPort"),
79: AsyncPort.class);
80: }
81:
82: }
|