Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2008, 06:26 AM
Member
 
Join Date: May 2008
Posts: 1
sudheerbasu.k@gmail.com is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-11-2008, 03:25 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 155
danielstoner is on a distinguished road
Use a Timer?
__________________
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis Client accessing data on .Net webservice cfacile666 Web Frameworks 0 03-06-2008 12:31 PM
How to track client logout time and orignal ipaddress (not gateway) in java psandeep JavaServer Pages (JSP) and JSTL 0 01-30-2008 12:52 PM
Finding out the client who is receiving the response. v.ranjith Advanced Java 2 01-29-2008 08:03 AM
Writing webservice client javaplus Web Frameworks 0 12-19-2007 11:10 AM
Webservice ain't working? marcelman Networking 0 08-10-2007 03:48 AM


All times are GMT +3. The time now is 09:25 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org