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 static final URL WSDL_LOCATION;
49 public static final QName SERVICE = new QName("http://org.openecomp/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterService");
50 public static final 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 } catch (Exception e) {
56 msoLogger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "Exception - WSDL not found", e);
59 msoLogger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
62 msoLogger.info(MessageEnum.RA_PRINT_URL, "SDNCCallbackAdapter.wsdl", wsdlUrl.toURI().toString(), "SDNC", "");
63 } catch (Exception e) {
64 msoLogger.error(MessageEnum.RA_WSDL_URL_CONVENTION_EXC, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "Exception - URL convention problem", e);
67 WSDL_LOCATION = wsdlUrl;
70 public SDNCCallbackAdapterService(URL wsdlLocation) {
71 super(wsdlLocation, SERVICE);
74 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName) {
75 super(wsdlLocation, serviceName);
78 public SDNCCallbackAdapterService() {
79 super(WSDL_LOCATION, SERVICE);
82 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
83 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
84 //compliant code instead.
85 public SDNCCallbackAdapterService(WebServiceFeature ... features) {
86 super(WSDL_LOCATION, SERVICE, features);
89 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
90 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
91 //compliant code instead.
92 public SDNCCallbackAdapterService(URL wsdlLocation, WebServiceFeature ... features) {
93 super(wsdlLocation, SERVICE, features);
96 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
97 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
98 //compliant code instead.
99 public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
100 super(wsdlLocation, serviceName, features);
106 * returns SDNCCallbackAdapterPortType
108 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
109 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort() {
110 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class);
116 * 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.
118 * returns SDNCCallbackAdapterPortType
120 @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
121 public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort(WebServiceFeature... features) {
122 return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class, features);