Merge "Reorder modifiers"
[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 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");
51     static {
52         URL wsdlUrl = null;
53         try {
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);
57         }
58         if(wsdlUrl == null) {
59                 msoLogger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCCallbackAdapter.wsdl", "SDNC", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
60         } else {
61                 try {
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);
65                         }
66         }
67         WSDL_LOCATION = wsdlUrl;
68     }
69
70     public SDNCCallbackAdapterService(URL wsdlLocation) {
71         super(wsdlLocation, SERVICE);
72     }
73
74     public SDNCCallbackAdapterService(URL wsdlLocation, QName serviceName) {
75         super(wsdlLocation, serviceName);
76     }
77
78     public SDNCCallbackAdapterService() {
79         super(WSDL_LOCATION, SERVICE);
80     }
81
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);
87     }
88
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);
94     }
95
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);
101     }
102
103     /**
104      *
105      * @return
106      *     returns SDNCCallbackAdapterPortType
107      */
108     @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
109     public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort() {
110         return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class);
111     }
112
113     /**
114      *
115      * @param features
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.
117      * @return
118      *     returns SDNCCallbackAdapterPortType
119      */
120     @WebEndpoint(name = "SDNCCallbackAdapterSoapHttpPort")
121     public SDNCCallbackAdapterPortType getSDNCCallbackAdapterSoapHttpPort(WebServiceFeature... features) {
122         return super.getPort(SDNCCallbackAdapterSoapHttpPort, SDNCCallbackAdapterPortType.class, features);
123     }
124
125 }