/**
 * ThaiPalaceMenuServiceSoapBindingStub.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

public class ThaiPalaceMenuServiceSoapBindingStub extends org.apache.axis.wsdl.Stub implements ThaiPalaceMenuServicePortType {
    private org.apache.axis.client.ServiceClient call = new org.apache.axis.client.ServiceClient(new org.apache.axis.transport.http.HTTPTransport());
    private java.util.Hashtable properties = new java.util.Hashtable();

    public ThaiPalaceMenuServiceSoapBindingStub(java.net.URL endpointURL) throws org.apache.axis.SerializationException {
         this();
         call.set(org.apache.axis.transport.http.HTTPTransport.URL, endpointURL.toString());
    }
    public ThaiPalaceMenuServiceSoapBindingStub() throws org.apache.axis.SerializationException {
    }

    public void _setProperty(String name, Object value) {
        properties.put(name, value);
    }

    // From org.apache.axis.wsdl.Stub
    public Object _getProperty(String name) {
        return properties.get(name);
    }

    // From org.apache.axis.wsdl.Stub
    public void _setTargetEndpoint(java.net.URL address) {
        call.set(org.apache.axis.transport.http.HTTPTransport.URL, address.toString());
    }

    // From org.apache.axis.wsdl.Stub
    public java.net.URL _getTargetEndpoint() {
        try {
            return new java.net.URL((String) call.get(org.apache.axis.transport.http.HTTPTransport.URL));
        }
        catch (java.net.MalformedURLException mue) {
            return null; // ???
        }
    }

    // From org.apache.axis.wsdl.Stub
    public synchronized void setMaintainSession(boolean session) {
        call.setMaintainSession(session);
    }

    // From javax.naming.Referenceable
    public javax.naming.Reference getReference() {
        return null; // ???
    }

    public String fileToString(String arg0) throws java.rmi.RemoteException{
        if (call.get(org.apache.axis.transport.http.HTTPTransport.URL) == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        call.set(org.apache.axis.transport.http.HTTPTransport.ACTION, "");
        Object resp = call.invoke("", "fileToString", new Object[] {new org.apache.axis.message.RPCParam("arg0", arg0)});

        if (resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)resp;
        }
        else {
             return (String) resp;
        }
    }

    public String getMenu() throws java.rmi.RemoteException{
        if (call.get(org.apache.axis.transport.http.HTTPTransport.URL) == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        call.set(org.apache.axis.transport.http.HTTPTransport.ACTION, "");
        Object resp = call.invoke("", "getMenu", new Object[] {});

        if (resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)resp;
        }
        else {
             return (String) resp;
        }
    }

    public String getMenuDocument() throws java.rmi.RemoteException{
        if (call.get(org.apache.axis.transport.http.HTTPTransport.URL) == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        call.set(org.apache.axis.transport.http.HTTPTransport.ACTION, "");
        Object resp = call.invoke("", "getMenuDocument", new Object[] {});

        if (resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)resp;
        }
        else {
             return (String) resp;
        }
    }

    public String getMenuSchema() throws java.rmi.RemoteException{
        if (call.get(org.apache.axis.transport.http.HTTPTransport.URL) == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        call.set(org.apache.axis.transport.http.HTTPTransport.ACTION, "");
        Object resp = call.invoke("", "getMenuSchema", new Object[] {});

        if (resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)resp;
        }
        else {
             return (String) resp;
        }
    }

    public String getMenuStylesheet() throws java.rmi.RemoteException{
        if (call.get(org.apache.axis.transport.http.HTTPTransport.URL) == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        call.set(org.apache.axis.transport.http.HTTPTransport.ACTION, "");
        Object resp = call.invoke("", "getMenuStylesheet", new Object[] {});

        if (resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)resp;
        }
        else {
             return (String) resp;
        }
    }
}
