This project has retired. For details please refer to its Attic page.
HelloWorld_Service xref
View Javadoc
1   /*
2    * Copyright 2001-2010 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  package org.apache.juddi.samples;
18  
19  import java.net.URL;
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  
26  import org.apache.juddi.v3.client.ClassUtil;
27  
28  
29  /**
30   * The Hello World Service registered using WSDL2UDDI
31   * 
32   * This class was generated by the JAX-WS RI.
33   * JAX-WS RI 2.2.4-b01
34   * Generated source version: 2.2
35   * 
36   */
37  @WebServiceClient(name = "HelloWorld", targetNamespace = "http://samples.juddi.apache.org/", wsdlLocation = "src/main/resources/wsdl/helloworld.wsdl")
38  public class HelloWorld_Service
39      extends Service
40  {
41  
42      private final static URL HELLOWORLD_WSDL_LOCATION;
43      
44      private final static QName HELLOWORLD_QNAME = new QName("http://samples.juddi.apache.org/", "HelloWorld");
45  
46      static {
47      	HELLOWORLD_WSDL_LOCATION = ClassUtil.getResource("/wsdl/helloworld.wsdl",HelloWorld_Service.class);
48      }
49  
50      public HelloWorld_Service() {
51          super(__getWsdlLocation(), HELLOWORLD_QNAME);
52      }
53  
54      public HelloWorld_Service(URL wsdlLocation) {
55          super(wsdlLocation, HELLOWORLD_QNAME);
56      }
57  
58      public HelloWorld_Service(URL wsdlLocation, QName serviceName) {
59          super(wsdlLocation, serviceName);
60      }
61  
62      /**
63       * 
64       * @return
65       *     returns HelloWorld
66       */
67      @WebEndpoint(name = "HelloWorldImplPort")
68      public HelloWorld getHelloWorldImplPort() {
69          return super.getPort(new QName("http://samples.juddi.apache.org/", "HelloWorldImplPort"), HelloWorld.class);
70      }
71  
72      private static URL __getWsdlLocation() {
73          return HELLOWORLD_WSDL_LOCATION;
74      }
75  
76  }