2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Modifications Copyright (c) 2019 Samsung
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
23 package org.onap.so.adapters.sdnc.client;
27 import javax.xml.namespace.QName;
28 import javax.xml.ws.Service;
29 import javax.xml.ws.WebEndpoint;
30 import javax.xml.ws.WebServiceClient;
31 import javax.xml.ws.WebServiceFeature;
32 import org.onap.so.logger.ErrorCode;
33 import org.onap.so.logger.MessageEnum;
34 import org.slf4j.Logger;
35 import org.slf4j.LoggerFactory;
38 * This class was generated by Apache CXF 2.7.11.redhat-3 2015-01-28T11:07:02.074-05:00 Generated source version:
42 // SDNCAdapter to BPEL Async response WEB Service
43 @WebServiceClient(name = "SDNCCallbackAdapterService", wsdlLocation = "main/resources/SDNCCallbackAdapter.wsdl",
44 targetNamespace = "http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1")
45 public class SDNCCallbackAdapterService extends Service {
47 private static Logger logger = LoggerFactory.getLogger(SDNCCallbackAdapterService.class);
48 private static final String SDNC_CALLBACK_ADAPTER_WSDL = "SDNCCallbackAdapter.wsdl";
49 public static final URL WSDL_LOCATION;
50 public static final QName SERVICE =
51 new QName("http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterService");
52 public static final QName SDNCCallbackAdapterSoapHttpPort =
53 new QName("http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterSoapHttpPort");
57 wsdlUrl = Thread.currentThread().getContextClassLoader()
58 .getResource("main/resources/SDNCCallbackAdapter.wsdl");
59 } catch (Exception e) {
60 logger.error("{} {} {} {} {}", MessageEnum.RA_WSDL_NOT_FOUND.toString(), SDNC_CALLBACK_ADAPTER_WSDL, "SDNC",
61 ErrorCode.DataError.getValue(), "Exception - WSDL not found", e);
63 if (wsdlUrl == null) {
64 logger.error("{} {} {} {} {}", MessageEnum.RA_WSDL_NOT_FOUND.toString(), SDNC_CALLBACK_ADAPTER_WSDL, "SDNC",
65 ErrorCode.DataError.getValue(), "WSDL not found");
68 logger.info("{} {} {} {}", MessageEnum.RA_PRINT_URL.toString(), SDNC_CALLBACK_ADAPTER_WSDL,
69 wsdlUrl.toURI().toString(), "SDNC");
70 } catch (Exception e) {
71 logger.error("{} {} {} {} {}", MessageEnum.RA_WSDL_URL_CONVENTION_EXC.toString(),
72 SDNC_CALLBACK_ADAPTER_WSDL, "SDNC", ErrorCode.DataError.getValue(),
73 "Exception - URL convention problem", e);
76 WSDL_LOCATION = wsdlUrl;
79 public SDNCCallbackAdapterService(URL wsdlLocation) {
80 super(wsdlLocation, SERVICE);
83 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName) {
84 super(wsdlLocation, serviceName);
87 public SDNCCallbackAdapterService() {
88 super(WSDL_LOCATION, SERVICE);
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 SDNCCallbackAdapterService(WebServiceFeature... features) {
95 super(WSDL_LOCATION, 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 SDNCCallbackAdapterService(URL wsdlLocation, WebServiceFeature... features) {
102 super(wsdlLocation, SERVICE, features);
105 // This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
106 // API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
107 // compliant code instead.
108 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
109 super(wsdlLocation, serviceName, features);
114 * @return returns SDNCCallbackAdapterPortType
116 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
117 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort() {
118 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class);
123 * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features
124 * not in the <code>features</code> parameter will have their default values.
125 * @return returns SDNCCallbackAdapterPortType
127 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
128 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort(WebServiceFeature... features) {
129 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class, features);