473,408 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 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 6699
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 an abstract type as parameter. Using it from a...
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 solution with 30+ users, which needs to be upgraded....
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 help. I wrote a webservice in Java. Lets name...
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 other Method requires one Parameter of type...
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 Dataset). My question is, how did the client figure...
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 the service. (Note: That this service is not exposed...
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 C#-Webservice from a java client. Is this a...
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 but I'm having an issue generating the nonce...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.