001    package org.apache.camel.example.reportincident;
002    
003    import java.net.MalformedURLException;
004    import java.net.URL;
005    import javax.xml.namespace.QName;
006    import javax.xml.ws.WebEndpoint;
007    import javax.xml.ws.WebServiceClient;
008    import javax.xml.ws.WebServiceFeature;
009    import javax.xml.ws.Service;
010    
011    /**
012     * This class was generated by FuseSource Services Framework 2.4.3-fuse-04-15
013     * 2012-10-04T16:54:45.076Z
014     * Generated source version: 2.4.3-fuse-04-15
015     * 
016     */
017    @WebServiceClient(name = "ReportIncidentEndpointService", 
018                      wsdlLocation = "file:/root/camel/examples/camel-example-cxf-osgi/src/main/resources/META-INF/wsdl/report_incident.wsdl",
019                      targetNamespace = "http://reportincident.example.camel.apache.org") 
020    public class ReportIncidentEndpointService extends Service {
021    
022        public final static URL WSDL_LOCATION;
023    
024        public final static QName SERVICE = new QName("http://reportincident.example.camel.apache.org", "ReportIncidentEndpointService");
025        public final static QName ReportIncidentService = new QName("http://reportincident.example.camel.apache.org", "ReportIncidentService");
026        static {
027            URL url = null;
028            try {
029                url = new URL("file:/root/camel/examples/camel-example-cxf-osgi/src/main/resources/META-INF/wsdl/report_incident.wsdl");
030            } catch (MalformedURLException e) {
031                java.util.logging.Logger.getLogger(ReportIncidentEndpointService.class.getName())
032                    .log(java.util.logging.Level.INFO, 
033                         "Can not initialize the default wsdl from {0}", "file:/root/camel/examples/camel-example-cxf-osgi/src/main/resources/META-INF/wsdl/report_incident.wsdl");
034            }
035            WSDL_LOCATION = url;
036        }
037    
038        public ReportIncidentEndpointService(URL wsdlLocation) {
039            super(wsdlLocation, SERVICE);
040        }
041    
042        public ReportIncidentEndpointService(URL wsdlLocation, QName serviceName) {
043            super(wsdlLocation, serviceName);
044        }
045    
046        public ReportIncidentEndpointService() {
047            super(WSDL_LOCATION, SERVICE);
048        }
049        
050    
051        /**
052         *
053         * @return
054         *     returns ReportIncidentEndpoint
055         */
056        @WebEndpoint(name = "ReportIncidentService")
057        public ReportIncidentEndpoint getReportIncidentService() {
058            return super.getPort(ReportIncidentService, ReportIncidentEndpoint.class);
059        }
060    
061        /**
062         * 
063         * @param features
064         *     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.
065         * @return
066         *     returns ReportIncidentEndpoint
067         */
068        @WebEndpoint(name = "ReportIncidentService")
069        public ReportIncidentEndpoint getReportIncidentService(WebServiceFeature... features) {
070            return super.getPort(ReportIncidentService, ReportIncidentEndpoint.class, features);
071        }
072    
073    }