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

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

The 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.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;

/**
 * This class was generated by Apache CXF 2.4.4
 * 2012-07-02T18:24:20.569+02:00
 * Generated source version: 2.4.4
 * 
 */
@WebServiceClient(name = "PersonService", 
                  wsdlLocation = "file:/home/jbonofre/workspace/release/smx3/target/checkout/samples/cxf-wsdl-first/wsdl-first-cxfse-su/src/main/resources/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:/home/jbonofre/workspace/release/smx3/target/checkout/samples/cxf-wsdl-first/wsdl-first-cxfse-su/src/main/resources/person.wsdl");
        } catch (MalformedURLException e) {
            java.util.logging.Logger.getLogger(PersonService.class.getName())
                .log(java.util.logging.Level.INFO, 
                     "Can not initialize the default wsdl from {0}", "file:/home/jbonofre/workspace/release/smx3/target/checkout/samples/cxf-wsdl-first/wsdl-first-cxfse-su/src/main/resources/person.wsdl");
        }
        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 - 2024 Weber Informatics LLC | Privacy Policy