All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.servicemix.examples.cxf.HelloWorldImplService Maven / Gradle / Ivy

The newest version!

/*
 * 
 */

package org.apache.servicemix.examples.cxf;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;

/**
 * This class was generated by Apache CXF 2.1.4
 * Mon Mar 23 23:09:06 CET 2009
 * Generated source version: 2.1.4
 * 
 */


@WebServiceClient(name = "HelloWorldImplService", 
                  wsdlLocation = "file:/Users/gnodet/work/servicemix/smx4/features/trunk/target/checkout/examples/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl",
                  targetNamespace = "http://cxf.examples.servicemix.apache.org/") 
public class HelloWorldImplService extends Service {

    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new QName("http://cxf.examples.servicemix.apache.org/", "HelloWorldImplService");
    public final static QName HelloWorldImplPort = new QName("http://cxf.examples.servicemix.apache.org/", "HelloWorldImplPort");
    static {
        URL url = null;
        try {
            url = new URL("file:/Users/gnodet/work/servicemix/smx4/features/trunk/target/checkout/examples/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl");
        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from file:/Users/gnodet/work/servicemix/smx4/features/trunk/target/checkout/examples/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl");
            // e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

    public HelloWorldImplService(URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

    public HelloWorldImplService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public HelloWorldImplService() {
        super(WSDL_LOCATION, SERVICE);
    }

    /**
     * 
     * @return
     *     returns HelloWorld
     */
    @WebEndpoint(name = "HelloWorldImplPort")
    public HelloWorld getHelloWorldImplPort() {
        return super.getPort(HelloWorldImplPort, HelloWorld.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the features parameter will have their default values.
     * @return
     *     returns HelloWorld
     */
    @WebEndpoint(name = "HelloWorldImplPort")
    public HelloWorld getHelloWorldImplPort(WebServiceFeature... features) {
        return super.getPort(HelloWorldImplPort, HelloWorld.class, features);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy