You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Davanum Srinivas <da...@gmail.com> on 2008/04/13 00:29:56 UTC

[Axis2][jaxws][tip] How do i set timeout in a jaxws client

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just use the Axis2 standard timeout properties...

~        SwaTestService service = new SwaTestService();
~        port = service.getSwaTestPort();
~        Map<String, Object> rc = ((BindingProvider) port).getRequestContext();

~        rc.put(org.apache.axis2.transport.http.HTTPConstants.SO_TIMEOUT , new Integer(12345));
~        rc.put(org.apache.axis2.transport.http.HTTPConstants.CONNECTION_TIMEOUT, new Integer(23456));

~        rc.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
~                        "http://localhost:6061/axis2/services/SwaTestService.SwaTestPort");

thanks,
dims
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIATfjgNg6eWEDv1kRAvJUAJ4l/J67cqsXujn8vS3d+btZTsfyZQCgnkts
IJiZKefFdfQgWVh1U0My5QM=
=DjkV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org