472,328 Members | 1,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

.NET Client calling Java webservices. Slow Performance

Hi All,
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. (using
Apache Axis 1.1)

Scenario 1:
-----------
I have a VB.NET code exposed as COM. Lets call it VBNETCOM. I added a
webreference to my Webservice1 from VBNETCOM (using Visual Studio.NET
2003). 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, but when I am not, doesn't make any difference. Which
leads to the conclusion, some kind of caching is connection 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? I tend to feel that there is some setting that I need to set
in my .NET Client, so that it can cache some information, but don't
know what it is, me being new to .NET platform as such.
I also tried using a different client,written in C# but I get the same
performance as in VB.NET.
Nov 21 '05 #1
1 6577
Can you factor out COM in this case?

What happens if you have a C# client directly calling the AXIS service 3
times in succession?
I wasn't clear, after reading your description, whether you tried and
measured this scenario. There is some overhead in traversing the
..NET-to-COM interop barrier, and I am wondering if you have eliminated it
from your analysis. Can you also measure the converse: that is, a .NET
object in C# or VB.NET, exposed as a COM, which does nothing. How long does
it take to invoke that thing, three times in succession?
If the AXIS webservice is simple, you can also invoke it directly from VB
(or VBScript, Javascript, etc) by using the MSXML object family.

like so:
http://www.winisp.net/cheeso/srcview...e=ZipClient.js

But you have to do more work this way.

-Dino


"Lakshmi" <ln**************@labvantage.com> wrote in message
news:3e**************************@posting.google.c om...
Hi All,
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. (using
Apache Axis 1.1)

Scenario 1:
-----------
I have a VB.NET code exposed as COM. Lets call it VBNETCOM. I added a
webreference to my Webservice1 from VBNETCOM (using Visual Studio.NET
2003). 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, but when I am not, doesn't make any difference. Which
leads to the conclusion, some kind of caching is connection 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? I tend to feel that there is some setting that I need to set
in my .NET Client, so that it can cache some information, but don't
know what it is, me being new to .NET platform as such.
I also tried using a different client,written in C# but I get the same
performance as in VB.NET.

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul Hutchinson | last post by:
All, I wonder if anyone can help/advise with the following interoperability issue we are encountering? We have a .NET web service that takes...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB...
0
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the...
1
by: William | last post by:
I have a few questions. First, I have a java webservice, which was developed using the Java Webserices Developer Pack 1.3. Here is the wsdl for...
6
by: Sascha Schmidt | last post by:
Hi again! Well, the first part of my "mission" (calling remoting objects from a webservice) is solved. But there's another part: Calling this...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.