Change the header to SO
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / openecomp / mso / adapters / sdnc / client / SDNCCallbackAdapterService.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.mso.adapters.sdnc.client;
22
23
24 import java.net.URL;
25
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;
33
34 /**
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
38  *
39  */
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 {
45
46         private static MsoLogger msoLogger = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA);
47
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");
51     static {
52         URL wsdlUrl = null;
53         try {
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);
58         }
59         if(wsdlUrl == null) {
60                 msoLogger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
61         } else {
62                 try {
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);
66                         }
67         }
68         WSDL_LOCATION = wsdlUrl;
69     }
70
71     public SDNCCallbackAdapterService(URL wsdlLocation) {
72         super(wsdlLocation, SERVICE);
73     }
74
75     public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName) {
76         super(wsdlLocation, serviceName);
77     }
78
79     public SDNCCallbackAdapterService() {
80         super(WSDL_LOCATION, SERVICE);
81     }
82
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);
88     }
89
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);
95     }
96
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);
102     }
103
104     /**
105      *
106      * @return
107      *     returns SDNCCallbackAdapterPortType
108      */
109     @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
110     public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort() {
111         return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class);
112     }
113
114     /**
115      *
116      * @param features
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.
118      * @return
119      *     returns SDNCCallbackAdapterPortType
120      */
121     @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
122     public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort(WebServiceFeature... features) {
123         return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class, features);
124     }
125
126 }