001
002 /*
003 *
004 */
005
006 package org.apache.camel.example.reportincident;
007
008 import java.net.MalformedURLException;
009 import java.net.URL;
010 import javax.xml.namespace.QName;
011 import javax.xml.ws.WebEndpoint;
012 import javax.xml.ws.WebServiceClient;
013 import javax.xml.ws.WebServiceFeature;
014 import javax.xml.ws.Service;
015
016 /**
017 * This class was generated by Apache CXF 2.2.5
018 * Tue Dec 01 02:05:56 EST 2009
019 * Generated source version: 2.2.5
020 *
021 */
022
023
024 @WebServiceClient(name = "ReportIncidentEndpointService",
025 wsdlLocation = "file:/w1/apache/release/camel/target/checkout/examples/camel-example-cxf-async/src/main/resources/wsdl/report_incident.wsdl",
026 targetNamespace = "http://reportincident.example.camel.apache.org")
027 public class ReportIncidentEndpointService extends Service {
028
029 public final static URL WSDL_LOCATION;
030 public final static QName SERVICE = new QName("http://reportincident.example.camel.apache.org", "ReportIncidentEndpointService");
031 public final static QName ReportIncidentService = new QName("http://reportincident.example.camel.apache.org", "ReportIncidentService");
032 static {
033 URL url = null;
034 try {
035 url = new URL("file:/w1/apache/release/camel/target/checkout/examples/camel-example-cxf-async/src/main/resources/wsdl/report_incident.wsdl");
036 } catch (MalformedURLException e) {
037 System.err.println("Can not initialize the default wsdl from file:/w1/apache/release/camel/target/checkout/examples/camel-example-cxf-async/src/main/resources/wsdl/report_incident.wsdl");
038 // e.printStackTrace();
039 }
040 WSDL_LOCATION = url;
041 }
042
043 public ReportIncidentEndpointService(URL wsdlLocation) {
044 super(wsdlLocation, SERVICE);
045 }
046
047 public ReportIncidentEndpointService(URL wsdlLocation, QName serviceName) {
048 super(wsdlLocation, serviceName);
049 }
050
051 public ReportIncidentEndpointService() {
052 super(WSDL_LOCATION, SERVICE);
053 }
054
055 /**
056 *
057 * @return
058 * returns ReportIncidentEndpoint
059 */
060 @WebEndpoint(name = "ReportIncidentService")
061 public ReportIncidentEndpoint getReportIncidentService() {
062 return super.getPort(ReportIncidentService, ReportIncidentEndpoint.class);
063 }
064
065 /**
066 *
067 * @param features
068 * 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.
069 * @return
070 * returns ReportIncidentEndpoint
071 */
072 @WebEndpoint(name = "ReportIncidentService")
073 public ReportIncidentEndpoint getReportIncidentService(WebServiceFeature... features) {
074 return super.getPort(ReportIncidentService, ReportIncidentEndpoint.class, features);
075 }
076
077 }