Merge "Reorder modifiers"
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / openecomp / mso / adapters / sdnc / SDNCAdapterService.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;
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.openecomp.mso.logger.MsoLogger;
33 import org.openecomp.mso.logger.MessageEnum;
34
35 /**
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
39  *
40  */
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 {
46
47         private static MsoLogger logger = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA);
48
49     public static final URL WSDL_LOCATION;
50
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");
53     static {
54         URL wsdlUrl = null;
55         try {
56                 wsdlUrl = Thread.currentThread().getContextClassLoader().getResource("main/resources/SDNCAdapter.wsdl");
57                 
58         } catch (Exception e) {
59             logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "Exception - WSDL not found", e);
60         }
61         if(wsdlUrl == null) {
62                 logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "WSDL not found");
63         } else {
64                 try {
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);
68                         }
69         }
70         WSDL_LOCATION = wsdlUrl;
71     }
72
73     public SDNCAdapterService(URL wsdlLocation) {
74         super(wsdlLocation, SERVICE);
75     }
76
77     public SDNCAdapterService(URL wsdlLocation, QName serviceName) {
78         super(wsdlLocation, serviceName);
79     }
80
81     public SDNCAdapterService() {
82         super(WSDL_LOCATION, SERVICE);
83     }
84
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);
90     }
91
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);
97     }
98
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);
104     }
105
106     /**
107      *
108      * @return
109      *     returns SDNCAdapterPortType
110      */
111     @WebEndpoint(name = "SDNCAdapterSoapHttpPort")
112     public SDNCAdapterPortType getSDNCAdapterSoapHttpPort() {
113         return super.getPort(SDNCAdapterSoapHttpPort, SDNCAdapterPortType.class);
114     }
115
116     /**
117      *
118      * @param features
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.
120      * @return
121      *     returns SDNCAdapterPortType
122      */
123     @WebEndpoint(name = "SDNCAdapterSoapHttpPort")
124     public SDNCAdapterPortType getSDNCAdapterSoapHttpPort(WebServiceFeature... features) {
125         return super.getPort(SDNCAdapterSoapHttpPort, SDNCAdapterPortType.class, features);
126     }
127 }