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

public class HelloWorldServiceSoapBindingStub extends org.apache.axis.wsdl.Stub implements HelloWorldServicePortType {
    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 HelloWorldServiceSoapBindingStub(java.net.URL endpointURL) 
      throws org.apache.axis.SerializationException {
         this();
         call.set(org.apache.axis.transport.http.HTTPTransport.URL,
           endpointURL.toString());
    }
    public HelloWorldServiceSoapBindingStub() 
      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 getMessage() 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("", "getMessage", new Object[] {});

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

}
