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.130Z
014     * Generated source version: 2.4.3-fuse-04-15
015     * 
016     */
017    @WebServiceClient(name = "PersonService", 
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 PersonService 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", "PersonService");
025        public final static QName Soap3 = new QName("http://camel.apache.org/wsdl-first", "soap3");
026        public final static QName Soap2 = new QName("http://camel.apache.org/wsdl-first", "soap2");
027        public final static QName Soap = new QName("http://camel.apache.org/wsdl-first", "soap");
028        static {
029            URL url = null;
030            try {
031                url = new URL("file:/root/camel/components/camel-cxf-transport/src/test/resources/person.wsdl");
032            } catch (MalformedURLException e) {
033                java.util.logging.Logger.getLogger(PersonService.class.getName())
034                    .log(java.util.logging.Level.INFO, 
035                         "Can not initialize the default wsdl from {0}", "file:/root/camel/components/camel-cxf-transport/src/test/resources/person.wsdl");
036            }
037            WSDL_LOCATION = url;
038        }
039    
040        public PersonService(URL wsdlLocation) {
041            super(wsdlLocation, SERVICE);
042        }
043    
044        public PersonService(URL wsdlLocation, QName serviceName) {
045            super(wsdlLocation, serviceName);
046        }
047    
048        public PersonService() {
049            super(WSDL_LOCATION, SERVICE);
050        }
051        
052    
053        /**
054         *
055         * @return
056         *     returns Person
057         */
058        @WebEndpoint(name = "soap3")
059        public Person getSoap3() {
060            return super.getPort(Soap3, Person.class);
061        }
062    
063        /**
064         * 
065         * @param features
066         *     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.
067         * @return
068         *     returns Person
069         */
070        @WebEndpoint(name = "soap3")
071        public Person getSoap3(WebServiceFeature... features) {
072            return super.getPort(Soap3, Person.class, features);
073        }
074        /**
075         *
076         * @return
077         *     returns Person
078         */
079        @WebEndpoint(name = "soap2")
080        public Person getSoap2() {
081            return super.getPort(Soap2, Person.class);
082        }
083    
084        /**
085         * 
086         * @param features
087         *     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.
088         * @return
089         *     returns Person
090         */
091        @WebEndpoint(name = "soap2")
092        public Person getSoap2(WebServiceFeature... features) {
093            return super.getPort(Soap2, Person.class, features);
094        }
095        /**
096         *
097         * @return
098         *     returns Person
099         */
100        @WebEndpoint(name = "soap")
101        public Person getSoap() {
102            return super.getPort(Soap, Person.class);
103        }
104    
105        /**
106         * 
107         * @param features
108         *     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.
109         * @return
110         *     returns Person
111         */
112        @WebEndpoint(name = "soap")
113        public Person getSoap(WebServiceFeature... features) {
114            return super.getPort(Soap, Person.class, features);
115        }
116    
117    }