Containerization feature of SO
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / onap / so / 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.onap.so.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
32 import org.onap.so.logger.MessageEnum;
33 import org.onap.so.logger.MsoLogger;
34
35 /**
36  * This class was generated by Apache CXF 2.7.11.redhat-3
37  * 2015-01-28T11:07:02.074-05:00
38  * Generated source version: 2.7.11.redhat-3
39  *
40  */
41 //SDNCAdapter to BPEL Async response WEB Service
42 @WebServiceClient(name = "SDNCCallbackAdapterService",
43                   wsdlLocation = "main/resources/SDNCCallbackAdapter.wsdl",
44                   targetNamespace = "http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1")
45 public class SDNCCallbackAdapterService extends Service {
46
47         private static MsoLogger msoLogger = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA, SDNCCallbackAdapterService.class);
48
49     public static final URL WSDL_LOCATION;
50     public static final QName SERVICE = new QName("http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterService");
51     public static final QName SDNCCallbackAdapterSoapHttpPort = new QName("http://org.onap/workflow/sdnc/adapter/callback/wsdl/v1", "SDNCCallbackAdapterSoapHttpPort");
52     static {
53         URL wsdlUrl = null;
54         try {
55                 wsdlUrl = Thread.currentThread().getContextClassLoader().getResource("main/resources/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 }