You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by "Luis Pinho (EST)" <lp...@ptinovacao.pt> on 2001/07/25 14:07:38 UTC

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.

Re: Sending large string's (175 kb)

Posted by Stephan Wiesner <wi...@werum.de>.
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.


Re: Sending large string's (175 kb)

Posted by Stephan Wiesner <wi...@werum.de>.
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.


Little Help Sending Objects

Posted by Gordon Easton <go...@yahoo.com>.
Hi All,

I've been working on a serializer/deserializer that
will let me return arbitrary Java Objects using SOAP.
I having it working. It's pretty cool to get an object
returned from across the net.  
The only problem is that the client needs to have
access to the specific Class definition being returned
so that the returned Object can be cast properly.  If
there was a way for the client to get the Class
definition from the web service that will be returning
the Object the client would not need the class
definition.  Does anyone know how I could do this?
I vaguely remember this being done using CORBA, but
that was a while ago.

Thanks for any thoughts.



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Little Help Sending Objects

Posted by Gordon Easton <go...@yahoo.com>.
Hi All,

I've been working on a serializer/deserializer that
will let me return arbitrary Java Objects using SOAP.
I having it working. It's pretty cool to get an object
returned from across the net.  
The only problem is that the client needs to have
access to the specific Class definition being returned
so that the returned Object can be cast properly.  If
there was a way for the client to get the Class
definition from the web service that will be returning
the Object the client would not need the class
definition.  Does anyone know how I could do this?
I vaguely remember this being done using CORBA, but
that was a while ago.

Thanks for any thoughts.



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/