Skip to Content
0
Former Member
Aug 23, 2005 at 09:59 AM

Creating a Client Bean for a Webservice

12 Views

Hi,

I created a deployable proxy for a webservice. I created a client bean that uses this proxy. I have created a webservice from the client bean and tested it. When I test my business Method testSampleWS I get the following error:

java.rmi.RemoteException: Service call exception; nested exception is: java.net.ConnectException: Connection timed out: connect

/**

  • Business Method.

*/

public String testSampleWS() {

try{

InitialContext ic = new InitialContext();

CalculatorService s = (CalculatorService)ic.lookup ("java:comp/env/JNDIName");

CalculatorServiceViDocument vi = s.getLogicalPort();

vi.add(0.4f,2.0f);

return "hallo ";

} catch (Throwable e){

return "hier"+ e.toString();

}

}

If I remove the line vi.add(0.4f,2.0f); in the source code everything works fine. add is the business method of the webservice I want to create a client for.

What can be the problem?

Thank you

Julia