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.LoggingAnchor;
33 import org.onap.so.logger.ErrorCode;
34 import org.onap.so.logger.MessageEnum;
35 import org.slf4j.Logger;
36 import org.slf4j.LoggerFactory;
39 * This class was generated by Apache CXF 2.7.11.redhat-3 2015-01-28T11:07:02.074-05:00 Generated source version:
43 // SDNCAdapter to BPEL Async response WEB Service
44 @WebServiceClient(name = "SDNCCallbackAdapterService", wsdlLocation = "main/resources/SDNCCallbackAdapter.wsdl",
45 targetNamespace = "http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1")
46 public class SDNCCallbackAdapterService extends Service {
48 private static Logger logger = LoggerFactory.getLogger(SDNCCallbackAdapterService.class);
49 private static final String SDNC_CALLBACK_ADAPTER_WSDL = "SDNCCallbackAdapter.wsdl";
50 public static final URL WSDL_LOCATION;
51 public static final QName SERVICE =
52 new QName("http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterService");
53 public static final QName SDNCCallbackAdapterSoapHttpPort =
54 new QName("http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterSoapHttpPort");
58 wsdlUrl = Thread.currentThread().getContextClassLoader()
59 .getResource("main/resources/SDNCCallbackAdapter.wsdl");
60 } catch (Exception e) {
61 logger.error(LoggingAnchor.FIVE, MessageEnum.RA_WSDL_NOT_FOUND.toString(), SDNC_CALLBACK_ADAPTER_WSDL,
62 "SDNC", ErrorCode.DataError.getValue(), "Exception - WSDL not found", e);
64 if (wsdlUrl == null) {
65 logger.error(LoggingAnchor.FIVE, MessageEnum.RA_WSDL_NOT_FOUND.toString(), SDNC_CALLBACK_ADAPTER_WSDL,
66 "SDNC", ErrorCode.DataError.getValue(), "WSDL not found");
69 logger.info(LoggingAnchor.FOUR, MessageEnum.RA_PRINT_URL.toString(), SDNC_CALLBACK_ADAPTER_WSDL,
70 wsdlUrl.toURI().toString(), "SDNC");
71 } catch (Exception e) {
72 logger.error(LoggingAnchor.FIVE, MessageEnum.RA_WSDL_URL_CONVENTION_EXC.toString(),
73 SDNC_CALLBACK_ADAPTER_WSDL, "SDNC", ErrorCode.DataError.getValue(),
74 "Exception - URL convention problem", e);
77 WSDL_LOCATION = wsdlUrl;
80 public SDNCCallbackAdapterService(URL wsdlLocation) {
81 super(wsdlLocation, SERVICE);
84 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName) {
85 super(wsdlLocation, serviceName);
88 public SDNCCallbackAdapterService() {
89 super(WSDL_LOCATION, SERVICE);
92 // This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
93 // API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
94 // compliant code instead.
95 public SDNCCallbackAdapterService(WebServiceFeature... features) {
96 super(WSDL_LOCATION, SERVICE, features);
99 // This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
100 // API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
101 // compliant code instead.
102 public SDNCCallbackAdapterService(URL wsdlLocation, WebServiceFeature... features) {
103 super(wsdlLocation, SERVICE, features);
106 // This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
107 // API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
108 // compliant code instead.
109 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
110 super(wsdlLocation, serviceName, features);
115 * @return returns SDNCCallbackAdapterPortType
117 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
118 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort() {
119 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class);
124 * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features
125 * not in the <code>features</code> parameter will have their default values.
126 * @return returns SDNCCallbackAdapterPortType
128 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
129 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort(WebServiceFeature... features) {
130 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class, features);