Re: Axis memory leak

2005-01-14 Thread Vy Ho
That does it. The memory no longer go up. The way I do it is inside the generated stub, I wrap the call with a try/catch/finally, and in that, I put your code below. I am not sure if this is the best way of doing it. However, I am just testing. I won't use this code though. In client-side s

Axis Bug in handling error in DataHandler

2005-01-14 Thread Vy Ho
When calling a function with DataHandler as an attachment: public void doit(DataHandler dh); I would do this: DataHandler dh = new DataHandler(new FileDataSource(filename)); mystub.doit(dh); The problem is that when filename is not found, or a directory, an exception is generated in the client sid

Re: Axis memory leak

2005-01-14 Thread Vy Ho
WAJSBERG Julien RD-BIZZ wrote: Vy Ho a écrit : In client-side stub code, look for the call object and try: Call.getMessageContext().getRequestMessage().getSOAPEnvelope().getRecorder().clear(); -- Lyndon Tiu I can choose not to use the application scope for now. However, this shows a very

Re: Axis memory leak

2005-01-14 Thread Vy Ho
In client-side stub code, look for the call object and try: Call.getMessageContext().getRequestMessage().getSOAPEnvelope().getRecorder().clear(); -- Lyndon Tiu I can choose not to use the application scope for now. However, this shows a very serious problem with the generated stub I believe.

Axis memory leak

2005-01-13 Thread Vy Ho
When setting the scope of my service to application, the client side will run out of memory after 5-10 thousand hits. The service object on the server side is thread safe and works with both application and request scope. The server does not have any leak. The reason I change it to application

Re: DataHandler referenced but not defined

2005-01-12 Thread Vy Ho
Try import the namespace: "http://xml.apache.org/xml-soap";

Re: axis performance in multithreading env

2005-01-10 Thread Vy Ho
This is a problem for me. I use Netbeans and the JFluid supports 1.4, not Jdk1.5. My apps run under 1.5. It would take some effort on my part to make these apps run elsewhere. I am currently tied up at a moment, so I have to put this off for now. I am sorry about this. If time permit, I'

Please help vote for this issue

2005-01-10 Thread Vy Ho
When using DataHandler, Axis would often erroneously send the attached data in the next different request (that has no attachment whatsoever). This is an error by itself and also causes application freezes up. I believe this is really a serious issue and a show stopper. Please vote for it at

Re: axis performance in multithreading env

2005-01-10 Thread Vy Ho
Using the latest source code (ant build from today's source download) (will be called "New code") and the Axis 1.2 RC2 (will be called "Old code"), I run the test with different parameters. The client side is 1 application with 1 or more threads. Each thread makes a number of requests to the

Re: Using swing's JProgressBar with an axis call....

2005-01-10 Thread Vy Ho
Can you be more specific? If sending an attachment, I think you can wrap the data source (assumming using DataHandler). If using another mechanism, try to wrap the io of that class if possible. Next, in the read() function of your inputstream, you can count the byte read, and then use it alo

Re: Best way to send attachments

2005-01-07 Thread Vy Ho
All of the reples make no sense whatsover to me. The original poster makes a very clear question that how to send attachments using soap way that works with many environments. For example, Axis and .Net. To rephrase this, I would say how to create a Wsdl that works with both axis and .net. Cu

Re: axis performance in multithreading env

2005-01-07 Thread Vy Ho
I tried the nightly build, but I didn't notice any difference. When you said multi-thread, what did you mean by that? Do you have multiple threads workin on the clients using a same Call object? Do you mean multi-thread on the server? I have an Axis client with mutliple threads. Each thread

Re: axis performance in multithreading env

2005-01-06 Thread Vy Ho
Thanks. I can't wait to get my hand on this. Well, I'll get the nightly build and try it out.

Re: axis performance in multithreading env

2005-01-05 Thread Vy Ho
What's the status of this? This would be really nice if it's incorporated into the next release candidate of Axis. On Mon, 06 Dec 2004 16:40:34 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, While doing performance tests on deserialization, I noticed that Axis scales very poorly when in

Re: SOAP w attachment throughput low compared to ftp

2004-12-23 Thread Vy Ho
There was a post here that has performance problem with attachment. When using buffered io, the performance shoot up 10 times. I wonder it also applies to your case.

Re: java2wsdl ant task for document/literal

2004-12-20 Thread Vy Ho
Use wrapped style, and it works with document/literal webservices (that is what it is, with a spin on how you program it). Ephemeris Lappis wrote: I'm not a SOAP expert ! I think i had understood the difference between document and wrapped styles, and i suppose tools that will process the repecti

Re: Question on timeout

2004-12-17 Thread Vy Ho
There's a bug in attachment in a way, that when you send or receive an attachment, the next message will send that too. This happens when you use the generated stub to send the stuff. Here's the url of the bug: http://nagoya.apache.org/jira/browse/AXIS-1729

Re: Java Client accessing a .NET Web Service

2004-12-16 Thread Vy Ho
Would it work if instead of making .Net RPC-style, you make Java's doc/lit/wrapped style? Steve Ichniowski wrote: I got it working, will post Java code if others desire to see it. I think the main thing was to make the .NET service an RPC-style service. -Original Message- From: Steve Ichn

Re: Axis, gSoap Project

2004-12-14 Thread Vy Ho
Thank you for the comment. I do not have an example for the gSoap server. I don't plan to include that in the example. I still haven't written the short tutorial for this yet (all the code is done). When I am done, I'll post it up. Vy Ho Zhou Jian Han wrote: This is very

Re: Axis and Java 1.5

2004-12-10 Thread Vy Ho
Those enums come from WSDL2Java. So did you run this command again after BACKUP and delete the old generated Java files? If you still have enum in these, please file bug report.

Re: Resolved: RE: Problem generating WSDL from Java

2004-12-01 Thread Vy Ho
I wonder if you declare an interface for this service, then use it to generate wsdl. This shields you from how you implement your service.

Re: desperate newbie-- trouble with image attachment

2004-12-01 Thread Vy Ho
lto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 3:25 AM To: [EMAIL PROTECTED] Subject: Re: desperate newbie-- trouble with image attachment Vy Ho a écrit : Looking at the reference for Java2Wsdl, there's this line: -y, --styleThe style of binding in the WSDL, either

Re: DIME attachments

2004-12-01 Thread Vy Ho
Why don't you get an example (like the attachment example, or numerous examples in this forum) and get it to work with DIME. Next, modify the client to work with your service. Another suggestion is to build an Axis server for your existing client. Then run, and use TCPMonitor to see what is

Re: desperate newbie-- trouble with image attachment

2004-11-30 Thread Vy Ho
help me out -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: Re: desperate newbie-- trouble with image attachment This should not be too hard. Let's take 5 to 10 minutes to get it to work. 1) sta

Re: desperate newbie-- trouble with image attachment

2004-11-30 Thread Vy Ho
This should not be too hard. Let's take 5 to 10 minutes to get it to work. 1) start with an interface: public interface ImageService{ public void sendImage(DataHandler data); } save that to a file named ImageService.java Also, add proper package for the class and import statements for DataHandl

Re: returning multiple parameters - including datahandler

2004-11-30 Thread Vy Ho
Can you wrap all things that you want to return in a class, then call that instead: class MyReturnedStuffs{ int status; String whatever; DataHandler data; } public MyReturnedStuffs doit(...){ }

Re: Big bug in Axis? DataHandler data is sent when making request without any parameter

2004-11-30 Thread Vy Ho
When fixing this bug, please also note that why the client freezes up when doing this (please check the first post). This could be a potential bug if the api is changed to: DataHandler echo(DataHandler data); And the client call the server twice in succession. The 2nd time, the client would u

Re: Big bug in Axis? DataHandler data is sent when making request without any parameter

2004-11-30 Thread Vy Ho
Thanks to Roy Willy Haug, he sent me the following message which states that he have had the same problem and found a way around it. I am not sure the way he described is the end solution to the problem or not, but it clearly indicates that this is indeed a bug, and should be an easy fix. Here

Re: Big bug in Axis? DataHandler data is sent when making request without any parameter

2004-11-29 Thread Vy Ho
Since this is a very serious problem and I haven't got any reponse, please someone in the "know" throw me some bones on what's going on with this. Is this being addressed? No body care? I need to file a bug report for it to go anywhere? Already fixed in the nightly? Thanks, vh. V D wrote: I

Re: Unnable to redeploy axis application

2004-11-24 Thread Vy Ho
Here's a follow up on what I found out about this problem. First, I would like to restate my problem. This happens in Tomcat Embedded mode. The version of Axis is 1.2, and Tomcat is 5.028 and 5.5.4. When I stop() and start() the axis webapp, the AdminServlet causes this problem. The webapp

MessageContext's getOperation() return null

2004-11-23 Thread Vy Ho
In a request handler, MessageContext's getOperation() returns null if define the handler's request flow in the global scope. If move this inside a service, then it will return a non null. Is this by design? Thanks, vh.

Unnable to redeploy axis application

2004-11-23 Thread Vy Ho
With an Axis application, I want to undeploy it, then redeploy the application. When I redeploy the application, I get an error. Is this a known problem with Axis? Is there a way to go around this? Or it's must the way I do it. Here's the error: - Illegal access: this web application insta

Does Java2WSDL with multiple port types?

2004-11-19 Thread Vy Ho
I would like to use Java2WSDL to generate wsdl file with multiple port types. This means it has to take multiple class name. One for each port type. Right now, I have to manually merge all these together. Thanks, vh

Re: Signal to noise ratio in Soap is very high

2004-11-16 Thread Vy Ho
Thank you for the link. Apache Tomcat already support server side gzip compression. I only need to do this on the client side. There's also free source code for doing the servlet that does the compression (very straight forward, because java already supply the gzip compression stream library

Re: Signal to noise ratio in Soap is very high

2004-11-16 Thread Vy Ho
I would go strictly with a socket-level approach. Just my 2 small coins, Elaine Vy Ho wrote: I look at a message send back from the server to a client in Axis, and was very surprised that most of the text is not the data that I need to send, but declaration and long namspaces. Is it possibl

Using keep alive to increase performance

2004-11-16 Thread Vy Ho
I was looking for a way to increase performance, because it seems the server is topped off at around 100 request per seconds. Searching for information about keep alive seem not be so easy. But at the end, I get it to work by doing this: 1) Download the commons-httpclient at apache.org 2) Add

Re: Signal to noise ratio in Soap is very high

2004-11-16 Thread Vy Ho
Searching around, I found this article: http://www-106.ibm.com/developerworks/webservices/library/ws-sqzsoap.html#code2 This basically add gzip to both end of the connection so that things gets smaller in the stream. The concept seems to be good. Is something Axis already implemented, so that I

Re: Signal to noise ratio in Soap is very high

2004-11-16 Thread Vy Ho
What I meant is the signal to noise ratio is very low.

Signal to noise ratio in Soap is very high

2004-11-16 Thread Vy Ho
I look at a message send back from the server to a client in Axis, and was very surprised that most of the text is not the data that I need to send, but declaration and long namspaces. Is it possible to reduce these down and still comply with Soap? Thanks, vh

Re: Cannot run AdminClient

2004-11-16 Thread Vy Ho
could you please show me, how you are doing that ? Which one that you would like me to show? How I run the Admin locally in the WEB-INF? Or the way I run the AdminClient? For the Admin, first I copy all class files for the webservice into the class folder inside WEB-INF. Next, copy the the d

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-16 Thread Vy Ho
I got the thing to work now with regard to this enum problem. Thank you all. vh.

Re: Wsdl2Java does not generate service locatosr for all services

2004-11-15 Thread Vy Ho
I have to take this back. The service locator is used for all port types. So, using this, I could get all 3 references to the ports.

Wsdl2Java does not generate service locatosr for all services

2004-11-15 Thread Vy Ho
I have a wsdl file with 3 porttypes, 3 bindings (1 for each) and under service, there are also 3 ports (1 for each). However, when generate Java files for this wsdl, it does not generates the service locators for 2 of the 3 ports listed under One way I could fix this is to split this wsdl int

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-15 Thread Vy Ho
Thank you for the advice. I'll do that. vh. Jonathan Colwell wrote: Try grabbing a nightly build, or building from the CVS tree. IIRC, the constants package was created after RC1. -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 9:58 AM To: [

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-15 Thread Vy Ho
Also, unzip the axis.jar file, I do not see the package there either.

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-15 Thread Vy Ho
d you please point me to the right location? I am using Axis1.2RC1. Thank you, vh. Davanum Srinivas wrote: constants is a package On Mon, 15 Nov 2004 12:38:33 -0500, Vy Ho <[EMAIL PROTECTED]> wrote: I am sorry to bother you so much, but I tried to use these constants without success. The s

Re: What is the name space for DataHandler?

2004-11-15 Thread Vy Ho
As you may have noted, apachesoap namspace is probably an alias, because in the attachment example, it's tns1. However, the important line maybe this: http://xml.apache.org/xml-soap"/> in the WSDL file. So, same question, is this namespace standard for use with attachment, or should I import

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-15 Thread Vy Ho
I am sorry to bother you so much, but I tried to use these constants without success. The setStyle and setUse of class org.apache.axis.description.OperationDesc uses 2 enumerations of types Style and Use. However, if I look at the Api of class org.apache.axis.Constants, I don't see any const

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-15 Thread Vy Ho
Thank you for the info. So this will go to the next release, such as Axis 1.2 RC2 or some thing?

Re: Cannot run AdminClient

2004-11-15 Thread Vy Ho
This is really strange isn't it? Followed some instruction on the web, I was able to generate deployed information directly in the config file (run Admin in the WEB-INF). This method modify the config file directly, and not using the web interface. This works for the attachment example. How

Re: Does axis 1.2 comply with JDK 5.0 (1.5)

2004-11-15 Thread Vy Ho
Thank you very much for the information. I'll change that to the code. However, this code is generated by Wsdl2Java. That means everytime I change something (still early stage in defining things), I have to manually go over and change these lines. Is there a switch to just tell Wsdl2Java to

Re: Poor performance with Axis 1.2 client vs Apache Soap 2.3.1

2004-11-12 Thread Vy Ho
How about try to add the server's ip/address to the client machine's host file. Event if it's the same machine, add localhost in anyway. Please let me know if that solves the initial delay. Bernard LUPIN wrote: Hi all, I'm writing a client that will query web services already developped with Apa

Re: Incomprehensible Axis 1.1 fault

2004-11-05 Thread Vy Ho
Please file a bug report for this, because the error message and the solution does not seem to have anything in common. (yes, that solves the problem, but I think the exception or whatever message needs to be changed on this). T K wrote: In case anyone else asks in the future... someone else h

Re: Axis C++ 1.3 final is released

2004-11-01 Thread Vy Ho
Sanjiva Weerawarana wrote: I am pretty sure even Axis/Java doesn't test for this kind of stuff and its certainly used in production widely :-). The Java version of Axis handled this test very well.

Re: Axis C++ 1.3 final is released

2004-11-01 Thread Vy Ho
sure even Axis/Java doesn't test for this kind of stuff and its certainly used in production widely :-). Sanjiva. - Original Message - From: "Vy Ho" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 01, 2004 8:57 PM Subject: Re: Axis C++ 1.3 fina

Re: Axis C++ 1.3 final is released

2004-11-01 Thread Vy Ho
Did developers of Axis C++ tested this with corruption of TCP/IP packages? That is to introduce random corruptions into the message at different places, and runs for hours or days? The library should handle this without a problem (not crashing). If this is not tested, then I don't think it's

What's the status of Axis 1.2?

2004-09-16 Thread Vy Ho
It's been a while, I don't know where Axis 1.2 is at right now. There many posts on this forum about problem with it, or the problem with migrating from 1.1 to 1.2. Anyone know what's the remaining issues to be solved or road blocker? Are they cleaning the last bugs, or still tuning for perf

Re: Performance issue with using Axis

2004-08-06 Thread Vy Ho
till working on changing the version and giving it a shot on Linux. I do not know about the network setting as the testing is being done by having the client and server on the same machine. Vy Ho

Re: Performance issue with using Axis

2004-08-05 Thread Vy Ho
is working within .5 seconds. We are still working on changing the version and giving it a shot on Linux. I do not know about the network setting as the testing is being done by having the client and server on the same machine. Vy Ho &

Re: Performance issue with using Axis

2004-08-03 Thread Vy Ho
Check your network connection settings, such as hosts file, etc. Other than that, you can find a hello world tutorial for axis somewhere complete with client and server to make sure there's nothing wrong with the way you do it. 5 seconds long is just plain wrong, so definitely you're having

Re: WSDL to C++ in Visual Studio ??

2004-07-19 Thread Vy Ho
Did you try gSoap? That should work. [EMAIL PROTECTED] wrote: I need a free tool that will fetch a WSDL located online and create a client in C++. Many of you have given me links to some pretty nifty programs, however none of them has this very easy function. Visual Studio will do it to C# o

Re: Advanced Troubleshootiong with Arrays in Axis

2004-07-16 Thread Vy Ho
You probably didn't read my message right. What I meant is do not try casting anyting at all, and it should not expect anything at all because: handler.query(groupName, password, accountName, conditions); Does not assign the result to anything. What I meant is that the above state

Re: Advanced Troubleshootiong with Arrays in Axis

2004-07-16 Thread Vy Ho
I told you already. Did you try (without assigning the result to anything). handler.query(groupName, password, accountName, conditions); It's not the casting to any type in your code. [EMAIL PROTECTED] wrote: Hello All, The past few days been quite a journey with Axis for me. I have

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
You still haven't tell me if you try this: handler.query(...);

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
Maybe download the latest stuff again, and generate all the stuffs again. (back up your stuff first). [EMAIL PROTECTED] wrote: Thanks for your help The class exceptionhappens immediately when the function returns. It never gets to the next line to tell me what the object type is. Any other

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
So did you try with: Object obj = handler.query(...); If no exception, can you do some investigation on this obj. Such as doing some reflection on it?

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
What I meant is: java.lang.Object[] yes_list = (Object[])handler.query(groupName, password, accountName, conditions); Vy Ho wrote: What does this mean? Can you do this: java.lang.Object[] yes_list = (String[])handler.query(groupName, password, accountName, conditions); Then: String syes_list

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
Necessary or not I am not sure, but if you have the control of the api (both server and client), then you can do so, and I am sure it'll work. You can look at the wsdl now to see what is returned. You can file bug report for it (please do) if it appears to be a bug. Your function maynot even

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
Maybe looking at the api closer. It could be an array holder that hold the value of the return array. If you write both the client and server code, you can also change the api to do so. That should work. [EMAIL PROTECTED] wrote: The program never gets passed this line: java.lang.Object[] ye

Re: ClassCastException when Passing Array's Through Axis

2004-07-15 Thread Vy Ho
What does this mean? Can you do this: java.lang.Object[] yes_list = (String[])handler.query(groupName, password, accountName, conditions); Then: String syes_list []; if(yes_list != null){ syes_list [] = new String[yes_list.length]; ...array copy here. }else{ syes_list = null; } If this

Re: Handling sessions

2004-07-07 Thread Vy Ho
Would you have to manually close the session if using this method, else there's still trash, just take longer to to trash the computer? How about set scope to global? Gerry Gao wrote: Hi, You can invoke the setMaintainSession(true) of the org.apache.axis.client.Call at client side.

Re: .NET client accessing multiple Axis WSDLs

2004-06-29 Thread Vy Ho
Is it possible to merge all your wsdls into a same wsdl file? Or specify a same namespace for all of them? Anand Natrajan wrote: Hello! As part of my .NET and Axis interoperability work, I am facing a piquant situation. I have written multiple web services using Axis. Each of these web services

Re: Regarding axis1_1 compatibility with weblogic

2004-06-28 Thread Vy Ho
I haven't tried the axis 1.1 on Weblogic server. The webservice I invoked was developed by me (an axis 1.2 beta server). This is a different thing, but may be a hint to this problem. When I port some ejb from Sun's app server to weblogic server, it complaints about doc type in the deployment

Re: Regarding axis1_1 compatibility with weblogic

2004-06-28 Thread Vy Ho
I was able to get the thing to work with Weblogic 8.1 sp5 using 1.2 beta (things just worked, I didn't do any tweaking to it). [EMAIL PROTECTED] wrote: Hi Jay, I tried using axis1.0 but its giving the same trouble. I guess its a problem with WebLogic. In case any one has anyother solution plea

MessageContext not conform to standard

2003-10-10 Thread Vy Ho
Hi, I try to do some simple param init things. So I see this example: MessageContext msgContext = MessageContext.getContext(); SOAPServiceservice= msgContext.getService(); paramValue = service.getOption("paramName"); However, this MessageContext is from: import org.apache.axi

MessageContext not conform to standard

2003-10-10 Thread Vy Ho
Hi, I try to do some simple param init things. So I see this example: MessageContext msgContext = MessageContext.getContext(); SOAPServiceservice= msgContext.getService(); paramValue = service.getOption("paramName"); However, this MessageContext is from: import org.apache.axis

RE: MessageContext not conform to standard

2003-10-10 Thread Vy Ho
I take it back. I got it to work now. I did not set the parameter correctly. That's why I did not get my stuff correctly. However, the standard question still lingering in my mind though. -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2