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;
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.openecomp.mso.logger.MsoLogger;
33 import org.openecomp.mso.logger.MessageEnum;
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.openecomp/workflow/sdnc/adapter/wsdl/v1")
45 public class SDNCAdapterService extends Service {
47 private static MsoLogger logger = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA);
49 public static final URL WSDL_LOCATION;
51 public static final QName SERVICE = new QName("http://org.openecomp/workflow/sdnc/adapter/wsdl/v1", "SDNCAdapterService");
52 public static final QName SDNCAdapterSoapHttpPort = new QName("http://org.openecomp/workflow/sdnc/adapter/wsdl/v1", "SDNCAdapterSoapHttpPort");
56 wsdlUrl = Thread.currentThread().getContextClassLoader().getResource("main/resources/SDNCAdapter.wsdl");
58 } catch (Exception e) {
59 logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "Exception - WSDL not found", e);
62 logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
65 logger.info(MessageEnum.RA_PRINT_URL, "SDNCAdpater.wsdl", wsdlUrl.toURI().toString(), "", "");
66 } catch (Exception e) {
67 logger.error(MessageEnum.RA_WSDL_URL_CONVENTION_EXC, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "Exception - print URL", e);
70 WSDL_LOCATION = wsdlUrl;
73 public SDNCAdapterService(URL wsdlLocation) {
74 super(wsdlLocation, SERVICE);
77 public SDNCAdapterService(URL wsdlLocation, QName serviceName) {
78 super(wsdlLocation, serviceName);
81 public SDNCAdapterService() {
82 super(WSDL_LOCATION, SERVICE);
85 //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
86 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
87 //compliant code instead.
88 public SDNCAdapterService(WebServiceFeature ... features) {
89 super(WSDL_LOCATION, SERVICE, features);
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 SDNCAdapterService(URL wsdlLocation, WebServiceFeature ... features) {
96 super(wsdlLocation, 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 SDNCAdapterService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
103 super(wsdlLocation, serviceName, features);
109 * returns SDNCAdapterPortType
111 @WebEndpoint(name = "SDNCAdapterSoapHttpPort")
112 public SDNCAdapterPortType getSDNCAdapterSoapHttpPort() {
113 return super.getPort(SDNCAdapterSoapHttpPort, SDNCAdapterPortType.class);
119 * 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.
121 * returns SDNCAdapterPortType
123 @WebEndpoint(name = "SDNCAdapterSoapHttpPort")
124 public SDNCAdapterPortType getSDNCAdapterSoapHttpPort(WebServiceFeature... features) {
125 return super.getPort(SDNCAdapterSoapHttpPort, SDNCAdapterPortType.class, features);