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 "WebService 1"
is not
VB.NET COM but a Java client itself.
Eg:
Call call = (Call) service.createC all();
.... // other code
returnvals= (Object[]) call.invoke( values); // method1
call.removeAllP arameters();
.... // other code
returnvals= (Object[]) call.invoke( values); // method1
call.removeAllP arameters();
.... // 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. 1 6737
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.c om> wrote in message
news:3e******** *************** ***@posting.goo gle.com... 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 "WebService 1" is not VB.NET COM but a Java client itself. Eg: Call call = (Call) service.createC all(); ... // other code
returnvals= (Object[]) call.invoke( values); // method1 call.removeAllP arameters(); ... // other code
returnvals= (Object[]) call.invoke( values); // method1 call.removeAllP arameters(); ... // 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 .net client works OK. However calling the method from
a java client (Websphere 5.0) we see the following error being thrown
on the call to the method.
|
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.
I believe a dotNet solution is better, but I'm trying to be as convincing as
possible -- and maybe I'm wrong!
I would appreciate any input or references which could help me.
|
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 this WebService1. (using
Apache Axis 1.1)
Scenario 1:
-----------
|
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 Parameter.
I can call the first Method without Problems, the Parameter can be
deserialized by the WebService.
But if I want to call the second Method and give it an Array of Parameters,
then the following exception is thrown by the WebService:...
|
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 out to create a "DataSet" as the
return type from the webservice?
| |
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
publicly.)
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.xxx.com/im/webservices/"
|
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 difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?
|
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 value for the UserName token. Is it
possilbe at all to do this from VBScript (or jscript?)? I know I will be
limited with what I can do with the SOAP message. Eg/ can't sign/encrypt it
etc.
Thanks,
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |