View Javadoc
1   package org.apache.juddi.v3.client;
2   /*
3    * Copyright 2001-2008 The Apache Software Foundation.
4    * 
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   *
17   */
18  import java.net.URL;
19  import javax.xml.namespace.QName;
20  import javax.xml.ws.Service;
21  import javax.xml.ws.WebEndpoint;
22  import javax.xml.ws.WebServiceClient;
23  import org.uddi.v2_service.Inquire;
24  import org.uddi.v2_service.Publish;
25  
26  
27  /**
28   * The UDDIService is defined by the UDDI v2 specification as the Service from which
29   * all UDDI Ports can be obtained. All known ports: Inquire, Publish
30   * 
31   * This class was generated by the JAX-WS RI.
32   * JAX-WS RI 2.2.4-b01
33   * Generated source version: 2.2
34   * 
35   */
36  @WebServiceClient(name = "UDDI_Service", targetNamespace = "urn:uddi-org:v2_service", wsdlLocation = "classpath:/uddi_v2_service.wsdl")
37  public class UDDIServiceV2
38      extends Service
39  {
40  
41      private final static URL UDDISERVICE_WSDL_LOCATION;
42      
43      private final static QName UDDISERVICE_QNAME = new QName("urn:uddi-org:v2_service", "UDDI_Service");
44  
45      static {
46          URL url = ClassUtil.getResource("uddi_v2_service.wsdl",UDDIServiceV2.class);
47          UDDISERVICE_WSDL_LOCATION = url;
48      }
49  
50      public UDDIServiceV2() {
51          super(UDDISERVICE_WSDL_LOCATION, UDDISERVICE_QNAME);
52      }
53  
54      public UDDIServiceV2(URL wsdlLocation) {
55          super(wsdlLocation, UDDISERVICE_QNAME);
56      }
57  
58      public UDDIServiceV2(URL wsdlLocation, QName serviceName) {
59          super(wsdlLocation, serviceName);
60      }
61  
62      /**
63       * UDDI v2 Inquire API
64       * @return
65       *     returns Inquire
66       */
67      @WebEndpoint(name = "Inquire")
68      public Inquire getInquire() {
69          return super.getPort(new QName("urn:uddi-org:v2_service", "Inquire"), Inquire.class);
70      }
71  
72  
73      /**
74       * UDDI v2 Publish API
75       * @return
76       *     returns Publish
77       */
78      @WebEndpoint(name = "Publish")
79      public Publish getPublish() {
80          return super.getPort(new QName("urn:uddi-org:v2_service", "Publish"), Publish.class);
81      }
82  
83  
84  }