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

org.apache.servicemix.samples.wsdl_first.PersonService Maven / Gradle / Ivy

Go to download

JBI compliant HTTP/SOAP or JMS/SOAP binding component which use Apache CXF internally

There is a newer version: 2013.01
Show newest version

/*
 * 
 */

package org.apache.servicemix.samples.wsdl_first;

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

/**
 * This class was generated by Apache CXF 2.1.2
 * Wed Oct 15 12:08:38 CEST 2008
 * Generated source version: 2.1.2
 * 
 */


@WebServiceClient(name = "PersonService", 
                  wsdlLocation = "file:/Users/gnodet/work/servicemix/components/bindings/servicemix-cxf-bc/branches/2008.01/target/checkout/src/test/resources/org/apache/servicemix/cxfbc/fault/person.wsdl",
                  targetNamespace = "http://servicemix.apache.org/samples/wsdl-first") 
public class PersonService extends Service {

    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService");
    public final static QName Soap = new QName("http://servicemix.apache.org/samples/wsdl-first", "soap");
    static {
        URL url = null;
        try {
            url = new URL("file:/Users/gnodet/work/servicemix/components/bindings/servicemix-cxf-bc/branches/2008.01/target/checkout/src/test/resources/org/apache/servicemix/cxfbc/fault/person.wsdl");
        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from file:/Users/gnodet/work/servicemix/components/bindings/servicemix-cxf-bc/branches/2008.01/target/checkout/src/test/resources/org/apache/servicemix/cxfbc/fault/person.wsdl");
            // e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy