axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernolet, Luc [PRDBE Extern]" <LBERN...@PRDBE.jnj.com>
Subject RE: Connection Timeout
Date Wed, 01 Dec 2004 10:44:17 GMT
Hi,

I had a similar problem.
The following helped for me:

...
    Service service = new Service();
    Call call = (Call) service.createCall();
    String endpoint = "...";
    call.setTargetEndpointAddress(new URL(endpoint));
	try {
		call.setTimeout(new Integer(3600000));  // ADDED THIS LINE
(time is inmilliseconds)
	   	call.setOperationName(new QName("runEEGAUC"));

		String [] result = (String []) call.invoke(new Object[]
{"DVLUX47",
...

Hope it works for you,
Luc.

-----Original Message-----
From: Mohammad Irfan [mailto:irfan199@gmail.com]
Sent: woensdag 1 december 2004 11:17
To: axis-user@ws.apache.org
Subject: Connection Timeout


Hello, my name is Mohammad Irfan.
How can I make axis connection timout longer. Because when my program
still running, axis has closed it's connection to the w-s client
before the programs returns i'ts result.

TIA

Mime
View raw message