Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Smile How to set a max response time in webservice client

    Hi,
    I have a query regarding writing a standalone Webservice Client class to access a webservice.
    I am deploying this on weblogic server. I have a webservice running on the server.
    Suppose for example I have a service as shown

    public class SimpleService
    {
    public String getTest()
    {
    int i=1;
    String str = null;
    while(i>0)
    {
    str = "Hi Hello";
    }
    return str;
    }
    }

    Now by Using my Webservice Standalone Client class I am calling this Service.
    This service will be called but never returns the String as the return string is in infinite loop.
    But my Standalone client class is waiting for the service even for hours and not throwing any exception.
    I dont want want it to wait for more than a minute, if the time period exceeds a minute my client code should
    print a message. How can I handle this situation in my client class. Please help me.

  2. #2
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

Similar Threads

  1. Axis Client accessing data on .Net webservice
    By cfacile666 in forum Web Frameworks
    Replies: 3
    Last Post: 09-02-2008, 11:35 AM
  2. How to track client logout time and orignal ipaddress (not gateway) in java
    By psandeep in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-13-2008, 12:32 AM
  3. Finding out the client who is receiving the response.
    By v.ranjith in forum Advanced Java
    Replies: 2
    Last Post: 01-29-2008, 07:03 AM
  4. Writing webservice client
    By javaplus in forum Web Frameworks
    Replies: 0
    Last Post: 12-19-2007, 10:10 AM
  5. Webservice ain't working?
    By marcelman in forum Networking
    Replies: 0
    Last Post: 08-10-2007, 02:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •