001 package org.apache.camel.wsdl_first;
002
003 import java.net.MalformedURLException;
004 import java.net.URL;
005 import javax.xml.namespace.QName;
006 import javax.xml.ws.WebEndpoint;
007 import javax.xml.ws.WebServiceClient;
008 import javax.xml.ws.WebServiceFeature;
009 import javax.xml.ws.Service;
010
011 /**
012 * This class was generated by FuseSource Services Framework 2.4.3-fuse-04-15
013 * 2012-10-04T16:06:27.139Z
014 * Generated source version: 2.4.3-fuse-04-15
015 *
016 */
017 @WebServiceClient(name = "PersonMultiPartService",
018 wsdlLocation = "file:/root/camel/components/camel-cxf-transport/src/test/resources/person.wsdl",
019 targetNamespace = "http://camel.apache.org/wsdl-first")
020 public class PersonMultiPartService extends Service {
021
022 public final static URL WSDL_LOCATION;
023
024 public final static QName SERVICE = new QName("http://camel.apache.org/wsdl-first", "PersonMultiPartService");
025 public final static QName PersonMultiPartPort = new QName("http://camel.apache.org/wsdl-first", "PersonMultiPartPort");
026 static {
027 URL url = null;
028 try {
029 url = new URL("file:/root/camel/components/camel-cxf-transport/src/test/resources/person.wsdl");
030 } catch (MalformedURLException e) {
031 java.util.logging.Logger.getLogger(PersonMultiPartService.class.getName())
032 .log(java.util.logging.Level.INFO,
033 "Can not initialize the default wsdl from {0}", "file:/root/camel/components/camel-cxf-transport/src/test/resources/person.wsdl");
034 }
035 WSDL_LOCATION = url;
036 }
037
038 public PersonMultiPartService(URL wsdlLocation) {
039 super(wsdlLocation, SERVICE);
040 }
041
042 public PersonMultiPartService(URL wsdlLocation, QName serviceName) {
043 super(wsdlLocation, serviceName);
044 }
045
046 public PersonMultiPartService() {
047 super(WSDL_LOCATION, SERVICE);
048 }
049
050
051 /**
052 *
053 * @return
054 * returns PersonMultiPartPortType
055 */
056 @WebEndpoint(name = "PersonMultiPartPort")
057 public PersonMultiPartPortType getPersonMultiPartPort() {
058 return super.getPort(PersonMultiPartPort, PersonMultiPartPortType.class);
059 }
060
061 /**
062 *
063 * @param features
064 * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
065 * @return
066 * returns PersonMultiPartPortType
067 */
068 @WebEndpoint(name = "PersonMultiPartPort")
069 public PersonMultiPartPortType getPersonMultiPartPort(WebServiceFeature... features) {
070 return super.getPort(PersonMultiPartPort, PersonMultiPartPortType.class, features);
071 }
072
073 }