File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Java webservice .NET Client. Performance issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java webservice .NET Client. Performance issues" Watch "Java webservice .NET Client. Performance issues" New topic

Java webservice .NET Client. Performance issues

Lakshmi Murthy

Joined: Dec 08, 2003
Posts: 1
I have a webservice written in Java and using Apache Axis 1.1.
When I use Java Client to call this webservice, the first call to a webservice method takes about 300 ms, but every subsequent call takes only 50-90 ms.

When I use .NET Client (VB.NET or C#), all calls take 500 ms.

In both cases, I instantiate the client only once, the webservice object only once and reuse the object to call/invoke the webservice methods.

Has any one had this kind of problem before? Please help.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
My guess would be that the server-side execution time is pretty much the same for every invocation -- i.e. it's the .NET client-side code that exhibits the weird delay for all invocations. Thus, I would suggest asking about how to optimize your .NET code from a .NET community such as GotDotNet.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Java webservice .NET Client. Performance issues
It's not a secret anymore!