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 at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 *16 */17package org.apache.juddi.v3.client;
1819import java.net.URL;
20import javax.xml.namespace.QName;
21import javax.xml.ws.Service;
22import javax.xml.ws.WebEndpoint;
23import javax.xml.ws.WebServiceClient;
24import javax.xml.ws.WebServiceFeature;
2526import org.apache.juddi.v3_service.JUDDIApiPortType;
2728/**29 * This call is for client side access to the JUDDI API, a web service meant for administrative functions above and beyond the30 * UDDI v3 specification.31 * 32 * @author jUDDI Team33 */34 @WebServiceClient(name = "JUDDIApiService", targetNamespace = "urn:juddi-apache-org:v3_service", wsdlLocation = "classpath:/juddi_api_v1.wsdl")
35publicclassJUDDIApiService36extends Service
37 {
3839privatefinalstatic URL JUDDIAPISERVICE_WSDL_LOCATION;
4041static {
42 URL url = ClassUtil.getResource("juddi_api_v1.wsdl",JUDDIApiService.class);
43 JUDDIAPISERVICE_WSDL_LOCATION = url;
44 }
4546publicJUDDIApiService(URL wsdlLocation, QName serviceName) {
47super(wsdlLocation, serviceName);
48 }
4950publicJUDDIApiService() {
51super(JUDDIAPISERVICE_WSDL_LOCATION, new QName("urn:juddi-apache-org:v3_service", "JUDDIApiService"));
52 }
5354/**55 * 56 * @return57 * returns JUDDIApiPortType58 */59 @WebEndpoint(name = "JUDDIApiImplPort")
60publicJUDDIApiPortType getJUDDIApiImplPort() {
61returnsuper.getPort(new QName("urn:juddi-apache-org:v3_service", "JUDDIApiImplPort"), JUDDIApiPortType.class);
62 }
6364/**65 * 66 * @param features67 * 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 * @return69 * returns JUDDIApiPortType70 */71 @WebEndpoint(name = "JUDDIApiImplPort")
72publicJUDDIApiPortType getJUDDIApiImplPort(WebServiceFeature... features) {
73returnsuper.getPort(new QName("urn:juddi-apache-org:v3_service", "JUDDIApiImplPort"), JUDDIApiPortType.class, features);
74 }
7576 }