001    
002    /*
003     * 
004     */
005    
006    package org.apache.camel.cxf.mtom_feature;
007    
008    import java.net.MalformedURLException;
009    import java.net.URL;
010    import javax.xml.namespace.QName;
011    import javax.xml.ws.WebEndpoint;
012    import javax.xml.ws.WebServiceClient;
013    import javax.xml.ws.WebServiceFeature;
014    import javax.xml.ws.Service;
015    
016    /**
017     * This class was generated by Progress FUSE Services Framework 2.2.11-fuse-00-00
018     * Wed Nov 24 04:37:39 UTC 2010
019     * Generated source version: 2.2.11-fuse-00-00
020     * 
021     */
022    
023    
024    @WebServiceClient(name = "HelloService", 
025                      wsdlLocation = "file:/mnt/hudson/fuse/mr/camel-2.4.0-fuse/target/checkout/components/camel-cxf/src/test/resources/mtom.wsdl",
026                      targetNamespace = "http://apache.org/camel/cxf/mtom_feature") 
027    public class HelloService extends Service {
028    
029        public final static URL WSDL_LOCATION;
030        public final static QName SERVICE = new QName("http://apache.org/camel/cxf/mtom_feature", "HelloService");
031        public final static QName HelloPort = new QName("http://apache.org/camel/cxf/mtom_feature", "HelloPort");
032        static {
033            URL url = null;
034            try {
035                url = new URL("file:/mnt/hudson/fuse/mr/camel-2.4.0-fuse/target/checkout/components/camel-cxf/src/test/resources/mtom.wsdl");
036            } catch (MalformedURLException e) {
037                System.err.println("Can not initialize the default wsdl from file:/mnt/hudson/fuse/mr/camel-2.4.0-fuse/target/checkout/components/camel-cxf/src/test/resources/mtom.wsdl");
038                // e.printStackTrace();
039            }
040            WSDL_LOCATION = url;
041        }
042    
043        public HelloService(URL wsdlLocation) {
044            super(wsdlLocation, SERVICE);
045        }
046    
047        public HelloService(URL wsdlLocation, QName serviceName) {
048            super(wsdlLocation, serviceName);
049        }
050    
051        public HelloService() {
052            super(WSDL_LOCATION, SERVICE);
053        }
054        
055    
056        /**
057         * 
058         * @return
059         *     returns Hello
060         */
061        @WebEndpoint(name = "HelloPort")
062        public Hello getHelloPort() {
063            return super.getPort(HelloPort, Hello.class);
064        }
065    
066        /**
067         * 
068         * @param features
069         *     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.
070         * @return
071         *     returns Hello
072         */
073        @WebEndpoint(name = "HelloPort")
074        public Hello getHelloPort(WebServiceFeature... features) {
075            return super.getPort(HelloPort, Hello.class, features);
076        }
077    
078    }