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

org.apache.camel.cxf.mtom_feature.HelloService Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version

/*
 * 
 */

package org.apache.camel.cxf.mtom_feature;

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.2.2
 * Sun Jul 19 21:41:19 EDT 2009
 * Generated source version: 2.2.2
 * 
 */


@WebServiceClient(name = "HelloService", 
                  wsdlLocation = "file:/w1/apache/release/camel/target/checkout/components/camel-cxf/src/test/resources/mtom.wsdl",
                  targetNamespace = "http://apache.org/camel/cxf/mtom_feature") 
public class HelloService extends Service {

    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new QName("http://apache.org/camel/cxf/mtom_feature", "HelloService");
    public final static QName HelloPort = new QName("http://apache.org/camel/cxf/mtom_feature", "HelloPort");
    static {
        URL url = null;
        try {
            url = new URL("file:/w1/apache/release/camel/target/checkout/components/camel-cxf/src/test/resources/mtom.wsdl");
        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from file:/w1/apache/release/camel/target/checkout/components/camel-cxf/src/test/resources/mtom.wsdl");
            // e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

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

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

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

    /**
     * 
     * @return
     *     returns Hello
     */
    @WebEndpoint(name = "HelloPort")
    public Hello getHelloPort() {
        return super.getPort(HelloPort, Hello.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 Hello
     */
    @WebEndpoint(name = "HelloPort")
    public Hello getHelloPort(WebServiceFeature... features) {
        return super.getPort(HelloPort, Hello.class, features);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy