Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web services not working on Vista 1

Status
Not open for further replies.

wooody1245

Programmer
Sep 13, 2005
28
US
I have a C# application that consumes a web service. It works great on Win 2000 or XP, but not on Vista. Some calls to the web service will work. But when the web service function returns a DataSet it will not work. I eventually get a timeout error. If the function returns an empty DataSet, I don't get the timeout error and the program executes properly.

I know the web service call doesn't take long enough to time out because I can test it on the XP version and it returns data in a few seconds. It's ONLY the web service funtions that return a dataset that won't work. Any ideas??
 
That's one of the reasons why everybody keeps telling me that you have to keep the objects you send very simple. A Dataset is not a simple object. A webservice is not language dependant and java won't understand the dataset thing you want to send it. Even a collection is not advised. Remeber That everything has to be made into an XML-file.

Christiaan Baes
Belgium

"My old site" - Me
 
Ok, I've done some more testing and discovered a few things. The web service will work correctly if the dataset only contains one table with a few rows (2 or 3 rows). I also changed the function to return an XML string. If the string is very short, it will work properly. But a longer string will not work. I get the same error with a longer string as with a DataSet that has more than 2 or 3 rows. So, I think this has something to do with the size of data returned from the web service.

Is there something I should do different when calling web services from a client application on a vista machine?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top