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.openecomp.mso.adapters.sdnc.client;
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;
31 import org.openecomp.mso.logger.MessageEnum;
32 import org.openecomp.mso.logger.MsoLogger;
35 * This class was generated by Apache CXF 2.7.11.redhat-3
36 * 2015-01-28T11:07:02.074-05:00
37 * Generated source version: 2.7.11.redhat-3
40 //SDNCAdapter to BPEL Async response WEB Service
41 @WebServiceClient(name = "SDNCCallbackAdapterService",
42 wsdlLocation = "main/resources/SDNCCallbackAdapter.wsdl",
43 targetNamespace = "http://org.openecomp/workflow/sdnc/adapter/callback/wsdl/v1")
44 public class SDNCCallbackAdapterService extends Service {
46 private static MsoLogger msoLogger = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA);
48 public final static URL WSDL_LOCATION;
49 public final static QName SERVICE = new QName("http://org.openecomp/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterService");
50 public final static QName SDNCCallbackAdapterSoapHttpPort = new QName("http://org.openecomp/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterSoapHttpPort");
54 wsdlUrl = Thread.currentThread().getContextClassLoader().getResource("main/resources/SDNCCallbackAdapter.wsdl");
55 //wsdlUrl = SDNCCallbackAdapterService.class.getClassLoader().getResource("SDNCCallbackAdapter.wsdl");
56 } catch (Exception e) {
57 msoLogger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "Exception - WSDL not found", e);
60 msoLogger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
63 msoLogger.info(MessageEnum.RA_PRINT_URL, "SDNCCallbackAdapter.wsdl", wsdlUrl.toURI().toString(), "SDNC", "");
64 } catch (Exception e) {
65 msoLogger.error(MessageEnum.RA_WSDL_URL_CONVENTION_EXC, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "Exception - URL convention problem", e);
68 WSDL_LOCATION = wsdlUrl;
71 public SDNCCallbackAdapterService(URL wsdlLocation) {
72 super(wsdlLocation, SERVICE);
75 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName) {
76 super(wsdlLocation, serviceName);
79 public SDNCCallbackAdapterService() {
80 super(WSDL_LOCATION, SERVICE);
83 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
84 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
85 //compliant code instead.
86 public SDNCCallbackAdapterService(WebServiceFeature ... features) {
87 super(WSDL_LOCATION, SERVICE, features);
90 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
91 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
92 //compliant code instead.
93 public SDNCCallbackAdapterService(URL wsdlLocation, WebServiceFeature ... features) {
94 super(wsdlLocation, SERVICE, features);
97 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
98 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
99 //compliant code instead.
100 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
101 super(wsdlLocation, serviceName, features);
107 * returns SDNCCallbackAdapterPortType
109 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
110 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort() {
111 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class);
117 * 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.
119 * returns SDNCCallbackAdapterPortType
121 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
122 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort(WebServiceFeature... features) {
123 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class, features);