2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.adapters.sdnc;
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 import javax.xml.ws.WebServiceFeature;
32 import org.onap.so.logger.MessageEnum;
33 import org.onap.so.logger.MsoLogger;
36 * This class was generated by Apache CXF 2.7.11.redhat-3
37 * 2015-01-27T18:25:50.994-05:00
38 * Generated source version: 2.7.11.redhat-3
41 //BPEL SDNCAdapter SOAP WebService
42 @WebServiceClient(name = "SDNCAdapterService",
43 wsdlLocation = "main/resources/SDNCAdapter.wsdl",
44 targetNamespace = "http://org.onap/workflow/sdnc/adapter/wsdl/v1")
45 public class SDNCAdapterService extends Service {
47 private static MsoLogger logger = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA, SDNCAdapterService.class);
49 public static final URL WSDL_LOCATION;
51 public static final QName SERVICE = new QName("http://org.onap/workflow/sdnc/adapter/wsdl/v1", "SDNCAdapterService");
52 public static final QName SDNCAdapterSoapHttpPort = new QName("http://org.onap/workflow/sdnc/adapter/wsdl/v1", "SDNCAdapterSoapHttpPort");
56 wsdlUrl = Thread.currentThread().getContextClassLoader().getResource("main/resources/SDNCAdapter.wsdl");
57 } catch (Exception e) {
58 logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "Exception - WSDL not found", e);
61 logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
64 logger.info(MessageEnum.RA_PRINT_URL, "SDNCAdpater.wsdl", wsdlUrl.toURI().toString(), "");
65 } catch (Exception e) {
66 logger.error(MessageEnum.RA_WSDL_URL_CONVENTION_EXC, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "Exception - print URL", e);
69 WSDL_LOCATION = wsdlUrl;
72 public SDNCAdapterService(URL wsdlLocation) {
73 super(wsdlLocation, SERVICE);
76 public SDNCAdapterService(URL wsdlLocation, QName serviceName) {
77 super(wsdlLocation, serviceName);
80 public SDNCAdapterService() {
81 super(WSDL_LOCATION, SERVICE);
84 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
85 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
86 //compliant code instead.
87 public SDNCAdapterService(WebServiceFeature ... features) {
88 super(WSDL_LOCATION, SERVICE, features);
91 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
92 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
93 //compliant code instead.
94 public SDNCAdapterService(URL wsdlLocation, WebServiceFeature ... features) {
95 super(wsdlLocation, SERVICE, features);
98 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
99 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
100 //compliant code instead.
101 public SDNCAdapterService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
102 super(wsdlLocation, serviceName, features);
108 * returns SDNCAdapterPortType
110 @WebEndpoint(name = "SDNCAdapterSoapHttpPort")
111 public SDNCAdapterPortType getSDNCAdapterSoapHttpPort() {
112 return super.getPort(SDNCAdapterSoapHttpPort, SDNCAdapterPortType.class);
118 * 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.
120 * returns SDNCAdapterPortType
122 @WebEndpoint(name = "SDNCAdapterSoapHttpPort")
123 public SDNCAdapterPortType getSDNCAdapterSoapHttpPort(WebServiceFeature... features) {
124 return super.getPort(SDNCAdapterSoapHttpPort, SDNCAdapterPortType.class, features);