Hi,
I am having the same problem.
I have a CGI Perl script using SOAP::Lite using SOAP-RPC to return about 400
database records as XML.
The data size is about 300Kb.
Using the tunnel, I can see when the data has finished being transmitted, yet
the Java Call.invoke() method does not return for another couple of /minutes/
I'm going to try zipping the data and returning as base64 next, this reduces the
file size to a mere 10kb, and hopefully will be faster.
But, just wondering, what is the Java SOAP Call.invoke() method doing that takes
so long?! Is it parsing the XML? Anyone know of any options to speed it up?
Thank-you,
Kevin
Stephan Wiesner wrote:
> Yes, there is, use tunneling.
> Than you can see, when it arrives at the server.
>
> Why can't you print debug messages when you are working?
> Like:
> - when server recieves message
> - start yourmethod()
> - end yourMethod()
> - start sending()
> - recieving()
>
> ?
> Stephan
>
> ----- Original Message -----
> From: "Luis Pinho (EST)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 25, 2001 5:31 PM
> Subject: RE: Sending large string's (175 kb)
>
> > I already tried to make a object that contained the string a made all the
> > setting so that SOAP worked allright but the time is the same...
> >
> > Without changing the code of the SOAP API it's hard to know, where the
> time
> > is consumed.
> >
> > I print the time when the return message is sent (the famous string with
> 175
> > Kb) and when the servlet get's it, there isn't any other place where I can
> > control the time consumed (at least I think soo).
> >
> >
> >
> > -----Original Message-----
> > From: Stephan Wiesner [mailto:[EMAIL PROTECTED]]
> > Sent: Quarta-feira, 25 de Julho de 2001 15:49
> > To: [EMAIL PROTECTED]
> > Subject: Re: Sending large string's (175 kb)
> >
> >
> > Propably not, since you said you are working on a single machine.
> > Use some debug messages to find out, where the time is consumed.
> > Loading the data, parsing it, sending it?
> >
> > Stephan
> >
> > ----- Original Message -----
> > From: "Luis Pinho (EST)" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 25, 2001 4:27 PM
> > Subject: RE: Sending large string's (175 kb)
> >
> >
> > > If I send Objects instead of String will the comunication be more fast
> ??
> > >
> > > -----Original Message-----
> > > From: Stephan Wiesner [mailto:[EMAIL PROTECTED]]
> > > Sent: Quarta-feira, 25 de Julho de 2001 13:54
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Sending large string's (175 kb)
> > >
> > >
> > > You could propably zip it, encode it with Base64 and decode it on the
> > other
> > > side. That is, if you need transfer speed, not CPU power.
> > > Or, if you are in controll of both sides, you could use somthing
> special,
> > > like sending Objects or such. Described here:
> > > http://www-106.ibm.com/developerworks/library/ws-peer3/
> > >
> > > Stephan
> > >
> > >
> > > ----- Original Message -----
> > > From: Luis Pinho (EST)
> > > To: Soap-User (E-mail)
> > > Sent: Wednesday, July 25, 2001 2:07 PM
> > > Subject: Sending large string's (175 kb)
> > >
> > >
> > > Hi,
> > >
> > >
> > > I'm using SOAP to call a method, that returns a String, this String is
> the
> > > result of a query made to a database, this query returns about 1400
> > records,
> > > each record contains 6 fields, if i save this string as a .txt file this
> > > will have about 175 Kb of size.
> > >
> > >
> > > The big problem, is the time I have to wait for the answer (about 1
> > > minute ). Is there any way of speeding up this process?
> > >
> > >
> > > Thank You
> > >
> > > Lu�s Pinho
> > >
> > >
> > > P.S: To build the string from the record set's returned by the query it
> > > takes about 3 seconds, the time between -> return string_with_results;
> (in
> > > the method that belongs to a class that is deployed in SOAP and is
> called)
> > > and the servlet( that makes the call to the SOAP) to get the results
> it's
> > > about 1 minute.