This project has retired. For details please refer to its Attic page.
JUDDIApiService xref
View Javadoc
1   /*
2    * Copyright 2001-2008 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.v3.client;
18  
19  import java.net.URL;
20  import javax.xml.namespace.QName;
21  import javax.xml.ws.Service;
22  import javax.xml.ws.WebEndpoint;
23  import javax.xml.ws.WebServiceClient;
24  import javax.xml.ws.WebServiceFeature;
25  
26  import org.apache.juddi.v3_service.JUDDIApiPortType;
27  
28  /**
29   * This call is for client side access to the JUDDI API, a web service meant for administrative functions above and beyond the
30   * UDDI v3 specification.
31   * 
32   * @author jUDDI Team
33   */
34  @WebServiceClient(name = "JUDDIApiService", targetNamespace = "urn:juddi-apache-org:v3_service", wsdlLocation = "classpath:/juddi_api_v1.wsdl")
35  public class JUDDIApiService
36      extends Service
37  {
38  
39      private final static URL JUDDIAPISERVICE_WSDL_LOCATION;
40  
41      static {
42          URL url = ClassUtil.getResource("juddi_api_v1.wsdl",JUDDIApiService.class);
43          JUDDIAPISERVICE_WSDL_LOCATION = url;
44      }
45  
46      public JUDDIApiService(URL wsdlLocation, QName serviceName) {
47          super(wsdlLocation, serviceName);
48      }
49  
50      public JUDDIApiService() {
51          super(JUDDIAPISERVICE_WSDL_LOCATION, new QName("urn:juddi-apache-org:v3_service", "JUDDIApiService"));
52      }
53  
54      /**
55       * 
56       * @return
57       *     returns JUDDIApiPortType
58       */
59      @WebEndpoint(name = "JUDDIApiImplPort")
60      public JUDDIApiPortType getJUDDIApiImplPort() {
61          return super.getPort(new QName("urn:juddi-apache-org:v3_service", "JUDDIApiImplPort"), JUDDIApiPortType.class);
62      }
63  
64      /**
65       * 
66       * @param features
67       *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
68       * @return
69       *     returns JUDDIApiPortType
70       */
71      @WebEndpoint(name = "JUDDIApiImplPort")
72      public JUDDIApiPortType getJUDDIApiImplPort(WebServiceFeature... features) {
73          return super.getPort(new QName("urn:juddi-apache-org:v3_service", "JUDDIApiImplPort"), JUDDIApiPortType.class, features);
74      }
75  
76  }