package org.accada.epcis.soap;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;

/**
 * This class was generated by Apache CXF (incubator) 2.0.4-incubator Wed Jan 30
 * 15:43:44 CET 2008 Generated source version: 2.0.4-incubator TODO: this class
 * is superfluous ... delete it! see QueryControlClient.
 */

@WebServiceClient(name = "EPCglobalEPCISService", targetNamespace = "urn:epcglobal:epcis:wsdl:1", wsdlLocation = "file:/D:/Projects/accada/epcis/epcis-commons/src/main/wsdl/EPCglobal-epcis-query-1_0.wsdl")
public class EPCglobalEPCISService extends Service {

    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new QName("urn:epcglobal:epcis:wsdl:1", "EPCglobalEPCISService");
    public final static QName EPCglobalEPCISServicePort = new QName("urn:epcglobal:epcis:wsdl:1",
            "EPCglobalEPCISServicePort");
    static {
        URL url = null;
        try {
            url = new URL("file:/D:/Projects/accada/epcis/epcis-commons/src/main/wsdl/EPCglobal-epcis-query-1_0.wsdl");
        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from file:/D:/Projects/accada/epcis/epcis-commons/src/main/wsdl/EPCglobal-epcis-query-1_0.wsdl");
            // e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

    public EPCglobalEPCISService(URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

    public EPCglobalEPCISService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public EPCglobalEPCISService() {
        super(WSDL_LOCATION, SERVICE);
    }

    /**
     * @return returns EPCglobalEPCISServicePort
     */
    @WebEndpoint(name = "EPCglobalEPCISServicePort")
    public EPCISServicePortType getEPCglobalEPCISServicePort() {
        return (EPCISServicePortType) super.getPort(EPCglobalEPCISServicePort, EPCISServicePortType.class);
    }

}

@@ -31,48 +31,8 @@
 %0D%0A%0D%0A
-import java.net.MalformedURLException;%0D%0A
 impo
@@ -1006,448 +1006,103 @@
     
-URL url = null;%0D%0A        try %7B%0D%0A            url = new URL(%22file:/D:/Projects/accada/epcis/epcis-commons/src/main/wsdl/EPCglobal-epcis-query-1_0.wsdl%22);%0D%0A        %7D catch (MalformedURLException e) %7B%0D%0A            System.err.println(%22Can not initialize the default wsdl from file:/D:/Projects/accada/epcis/epcis-commons/src/main/wsdl/EPCglobal-epcis-query-1_0.wsdl%22);%0D%0A            // e.printStackTrace();%0D%0A        %7D%0D%0A        WSDL_LOCATION = url
+WSDL_LOCATION = EPCglobalEPCISService.class.getResource(%22/wsdl/EPCglobal-epcis-query-1_0.wsdl%22)
 ;%0D%0A 

load wsdl file from classpath