org.apache.camel.wsdl_first.PersonService Maven / Gradle / Ivy
/*
*
*/
package org.apache.camel.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.2
* Thu May 14 08:14:44 EDT 2009
* Generated source version: 2.2
*
*/
@WebServiceClient(name = "PersonService",
wsdlLocation = "file:/w1/apache/release/camel/target/checkout/components/camel-cxf/src/test/resources/person.wsdl",
targetNamespace = "http://camel.apache.org/wsdl-first")
public class PersonService extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://camel.apache.org/wsdl-first", "PersonService");
public final static QName Soap = new QName("http://camel.apache.org/wsdl-first", "soap");
static {
URL url = null;
try {
url = new URL("file:/w1/apache/release/camel/target/checkout/components/camel-cxf/src/test/resources/person.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/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