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
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
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
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.
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
Try import the namespace: "http://xml.apache.org/xml-soap";
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'
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
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
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
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
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
Thanks. I can't wait to get my hand on this. Well, I'll get the
nightly build and try it out.
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
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.
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
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
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
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
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.
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.
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
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
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
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
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(...){
}
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
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
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
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
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.
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
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
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
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
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
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
What I meant is the signal to noise ratio is very low.
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
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
I got the thing to work now with regard to this enum problem. Thank you
all.
vh.
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.
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
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: [
Also, unzip the axis.jar file, I do not see the package there either.
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
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
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
Thank you for the info.
So this will go to the next release, such as Axis 1.2 RC2 or some thing?
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
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
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
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
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.
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
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
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
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
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
&
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
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
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
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
You still haven't tell me if you try this:
handler.query(...);
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
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?
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
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
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
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
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.
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
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
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
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
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
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
77 matches
Mail list logo