You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rishi Kulkarni <ri...@voxpath.com> on 2002/04/24 19:12:55 UTC

This Axis server is not currently accepting requests.

I get the error "This Axis server is not currently accepting requests."  
after executing the following code:
 
 
 
package samples.userguide.example1;
 
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
 
import javax.xml.rpc.namespace.QName;
 
public class TestClient
{
   public static void main(String [] args) {
       try {
           String endpoint = 
                    " http://nagoya.apache.org:5049/axis/servlet/AxisServlet
<http://nagoya.apache.org:5049/axis/servlet/AxisServlet> ";
     
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
 
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName(" http://soapinterop.org/
<http://soapinterop.org/> ", "echoString") );
 
           String ret = (String) call.invoke( new Object[] { "Hello!" } );
 
           System.out.println("Sent 'Hello!', got '" + ret + "'");
       } catch (Exception e) {
           System.err.println(e.toString());
       }
   }
}