axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HG" <a...@nospam.websolver.dk>
Subject Re: Calling Webservice from VB.NET COM. Performance issues.
Date Wed, 14 Jul 2004 06:50:46 GMT
Hi there

I have done this, although in C# and with no COM overhead, and I get about
the same results in the .NET as in your Axis client. That is, first call
takes longer than the two proceeding calls.

I don't know the exact reason for this, but I think it has to do with the
time it takes to establish a connection to the server. The connection object
is cached in the instance of the webservice (client), so that subsequent
calls does not have the overhead of establishing the connection. Much like
the reason to have a connection pooled for database connectivity.

Are you sure, that it is not COM overhead?


Regards

Henrik

----- Original Message ----- 
From: "Narasimhamurthy, Lakshmi" <LNarasimhamurthy@labvantage.com>
To: <axis-user@ws.apache.org>
Sent: Tuesday, July 13, 2004 7:48 PM
Subject: Calling Webservice from VB.NET COM. Performance issues.


Hi
I am new to axis and VB.NET. But had to work with both at the same
time. I am having performance issues with the .NET client calling the Java
Webservice running on axis. Have detailed the problem below. Please help.

I wrote a webservice in Java. Lets name this WebService1.

Scenario 1:
-----------
I have a VB.NET code exposed as COM. Lets call it VBNETCOM. I added a
webreference to my Webservice1 from VBNETCOM. So in my .NET code, all I have
to do is instantiate the WebService1 object and start calling methods on it.
Eg:
Dim WebService1 ws as new WebService1
ws.callMethod1()
ws.callMethod1()
ws.callMethod1()

Please note that the same method is being called 3 times. Now my problem is
that each of the calls to the methods take about half a second. (500ms)
which
is unacceptable.

Scenario 2:
-----------
So I did another test. This time the client calling the "WebService1" is not
VB.NET COM but a Java client itself.
Eg:
Call     call    = (Call) service.createCall();
... // other code

returnvals= (Object[]) call.invoke( values); // method1
call.removeAllParameters();
... // other code

returnvals= (Object[]) call.invoke( values); // method1
call.removeAllParameters();
... // other code

returnvals= (Object[]) call.invoke( values); // method1

In this case, the first call to method1, takes about 300ms, but subsequent
calls take only 50 - 90 ms. Please note that in this case, I am reusing the
call object, Which I think is the reason for the performance improvement. ->
Which leads to the conclusion, some kind of caching is done.

Question:
---------
How to improve the performance of the webservice call from VB.NET so
that it performance at the same level if not better than the Java client?
Is this some change that needs to be done at axis settings? or at VB.NET?

Any help is appreciated.





Mime
View raw message