0

I have a problem with a code, I'm using NetBeans IDE, and the Axis 1_4 library, so here is it:

Note: import this libraries:

import javax.xml.rpc.ServiceException;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;

Then this:

try {
        // TODO code application logic here


        Service service = new Service();
        Call call = (Call) service.createCall();
        String endpoint = "http://www.brenda-enzymes.org/soap2//brenda_server.php";
        call.setTargetEndpointAddress(new java.net.URL(endpoint));
        call.setOperationName(new QName("http://soapinterop.org/", "getEcNumbersFromApplication"));
        String resultString = (String) call.invoke( new Object[] {""});


        System.out.println(resultString);
    } catch (ServiceException ex) {
        System.out.println("Error, Service Exception, fix...");
    } catch(java.net.MalformedURLException ex){
        System.out.println("Error, MalformedURLException, tratar...");
    } catch(java.rmi.RemoteException ex){
        System.out.println("Error, RemoteException, deal with..."+ex.getMessage()+"\r\n"+ex.detail);
    }

This is the result that's shown to me:

 Error, RemoteException, deal with...; nested exception is: 
    java.net.ConnectException: Connection timed out: connect
    java.net.ConnectException: Connection timed out: connect

What could be the cause of this?

dariels88
  • 1
  • 1
  • 3

0 Answers0