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 Mahendra Babu <ba...@geometricsoftware.com> on 2001/02/09 17:16:53 UTC

Re: how to send a complex object via SOAP

Hi Florin,

I was able to serialize and de-serialize successfully. Thanks for all your inputs.

One thing I observed was that Base64.encode() and Base64.decode() functions seem
to consume a lot of time. Are there an any other alternate encoding methods available?

Is it possible to compress the byte array before encoding? so that I would be able to reduce
the payload.

Thanks once again.

-Mahendra Babu



  soap.jar
  org.apache.soap.encoding.soapenc.Base64
    ----- Original Message ----- 
    From: Mahendra Babu 
    To: Florin Moldovan 
    Sent: Thursday, February 08, 2001 6:24 PM
    Subject: Re: how to send a complex object via SOAP


    Hi Florin,

    Could you please point me where I could get the Base64 class. It seems
    that it is not a part of core Java.

    Thanks,
    Mahendra Babu

       
      Hi Mahendra,
       
      Let it be a class for serialization/deserialization:
       
      public class ObjectSerializerDeserializer {
          public static byte[] serialize(Object obj){
              // like you said
          }
          public static Object deserialize(byte deser[]){
              // the reversed task
          }
      }
       
       
      Client side:
        ComplexObject co = new ComplexObject(......);
        String s= Base64.encode(ObjectSerializerDeserializer.serialize(co));
        // send the string s via SOAP
       
      Server side:
        ComplexObject co = (ComplexObject)ObjectSerializerDeserializer.deserialize(Base64.decode(s));
        // s - is the received string
        // now you have the initial object
       
      Good luck again.

Re: Understanding SOAP

Posted by William Brogden <wb...@bga.com>.

"John E. Conlon" wrote:
> 
> Question for the list:
> 
> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
> buy or read?
> 
> Context:
> I am not interested in a Microsoft perspective (but I do want to write Java
> to talk with MS implementations) nor one that will confuse me coming up to
> speed with my Java - SOAP implementation.
> 
> Anyone read it and have an opinion?
> 
> thanks,
> 
> John

I am using it as a reference - it is pretty clearly written.

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Re: Understanding SOAP

Posted by "John L. Webber - jentro AG" <Jo...@jentro.com>.
It can also mean "strange".

John


Aleksandar Milanovic wrote:
> 
> As far as I know, komish (and not comish) means funny in German.
> Alex
> 
> -----Original Message-----
> From: John E. Conlon [mailto:jconlon@verticon.com]
> Sent: Monday, February 12, 2001 8:29 AM
> To: soap-user@xml.apache.org
> Subject: Re: Understanding SOAP
> 
> Isn't the word 'comish',  a German word for strange?  ;-)
> 
> John
> 
> At 08:43 PM 2/11/01 -0600, you wrote:
> >It is very Com-ish.
> >Regads - George


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jentro AG
John L. Webber, Software Development
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Peter-Henlein-Strasse 28-30, 85540 Haar/Munich, Germany
Tel.:  +49 89 462 385 0     (switchboard)
Tel.:  +49 89 462 385 38    (direct)
Fax:   +49 89 462 385 29
mailto:John.Webber@jentro.com
http://www.jentro.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: Understanding SOAP

Posted by "John L. Webber - jentro AG" <Jo...@jentro.com>.
It can also mean "strange".

John


Aleksandar Milanovic wrote:
> 
> As far as I know, komish (and not comish) means funny in German.
> Alex
> 
> -----Original Message-----
> From: John E. Conlon [mailto:jconlon@verticon.com]
> Sent: Monday, February 12, 2001 8:29 AM
> To: soap-user@xml.apache.org
> Subject: Re: Understanding SOAP
> 
> Isn't the word 'comish',  a German word for strange?  ;-)
> 
> John
> 
> At 08:43 PM 2/11/01 -0600, you wrote:
> >It is very Com-ish.
> >Regads - George


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jentro AG
John L. Webber, Software Development
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Peter-Henlein-Strasse 28-30, 85540 Haar/Munich, Germany
Tel.:  +49 89 462 385 0     (switchboard)
Tel.:  +49 89 462 385 38    (direct)
Fax:   +49 89 462 385 29
mailto:John.Webber@jentro.com
http://www.jentro.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

RE: Understanding SOAP

Posted by Aleksandar Milanovic <am...@galdosinc.com>.
As far as I know, komish (and not comish) means funny in German.
Alex

-----Original Message-----
From: John E. Conlon [mailto:jconlon@verticon.com]
Sent: Monday, February 12, 2001 8:29 AM
To: soap-user@xml.apache.org
Subject: Re: Understanding SOAP


Isn't the word 'comish',  a German word for strange?  ;-)

John

At 08:43 PM 2/11/01 -0600, you wrote:
>It is very Com-ish.
>Regads - George
>
>"John E. Conlon" wrote:
>
>> Question for the list:
>>
>> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
>> buy or read?
>>
>> Context:
>> I am not interested in a Microsoft perspective (but I do want to write
Java
>> to talk with MS implementations) nor one that will confuse me coming up
to
>> speed with my Java - SOAP implementation.
>>
>> Anyone read it and have an opinion?
>>
>> thanks,
>>
>> John
>> ************************************************************************
>> John E. Conlon
>> jconlon@verticon.com
>> tel: (770) 886-5470
>> fax: (770) 888-6894
>> <http://www.verticon.com/>www.verticon.com
>> ************************************************************************
>
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


RE: Understanding SOAP

Posted by Aleksandar Milanovic <am...@galdosinc.com>.
As far as I know, komish (and not comish) means funny in German.
Alex

-----Original Message-----
From: John E. Conlon [mailto:jconlon@verticon.com]
Sent: Monday, February 12, 2001 8:29 AM
To: soap-user@xml.apache.org
Subject: Re: Understanding SOAP


Isn't the word 'comish',  a German word for strange?  ;-)

John

At 08:43 PM 2/11/01 -0600, you wrote:
>It is very Com-ish.
>Regads - George
>
>"John E. Conlon" wrote:
>
>> Question for the list:
>>
>> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
>> buy or read?
>>
>> Context:
>> I am not interested in a Microsoft perspective (but I do want to write
Java
>> to talk with MS implementations) nor one that will confuse me coming up
to
>> speed with my Java - SOAP implementation.
>>
>> Anyone read it and have an opinion?
>>
>> thanks,
>>
>> John
>> ************************************************************************
>> John E. Conlon
>> jconlon@verticon.com
>> tel: (770) 886-5470
>> fax: (770) 888-6894
>> <http://www.verticon.com/>www.verticon.com
>> ************************************************************************
>
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


Re: Understanding SOAP

Posted by "John E. Conlon" <jc...@verticon.com>.
Isn't the word 'comish',  a German word for strange?  ;-)

John

At 08:43 PM 2/11/01 -0600, you wrote:
>It is very Com-ish.
>Regads - George
>
>"John E. Conlon" wrote:
>
>> Question for the list:
>>
>> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
>> buy or read?
>>
>> Context:
>> I am not interested in a Microsoft perspective (but I do want to write Java
>> to talk with MS implementations) nor one that will confuse me coming up to
>> speed with my Java - SOAP implementation.
>>
>> Anyone read it and have an opinion?
>>
>> thanks,
>>
>> John
>> ************************************************************************
>> John E. Conlon
>> jconlon@verticon.com
>> tel: (770) 886-5470
>> fax: (770) 888-6894
>> <http://www.verticon.com/>www.verticon.com
>> ************************************************************************
> 
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


Re: Understanding SOAP

Posted by "John E. Conlon" <jc...@verticon.com>.
Isn't the word 'comish',  a German word for strange?  ;-)

John

At 08:43 PM 2/11/01 -0600, you wrote:
>It is very Com-ish.
>Regads - George
>
>"John E. Conlon" wrote:
>
>> Question for the list:
>>
>> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
>> buy or read?
>>
>> Context:
>> I am not interested in a Microsoft perspective (but I do want to write Java
>> to talk with MS implementations) nor one that will confuse me coming up to
>> speed with my Java - SOAP implementation.
>>
>> Anyone read it and have an opinion?
>>
>> thanks,
>>
>> John
>> ************************************************************************
>> John E. Conlon
>> jconlon@verticon.com
>> tel: (770) 886-5470
>> fax: (770) 888-6894
>> <http://www.verticon.com/>www.verticon.com
>> ************************************************************************
> 
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


Re: Understanding SOAP

Posted by George I Matkovits <ma...@uswest.net>.
It is very Com-ish.
Regads - George

"John E. Conlon" wrote:

> Question for the list:
>
> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
> buy or read?
>
> Context:
> I am not interested in a Microsoft perspective (but I do want to write Java
> to talk with MS implementations) nor one that will confuse me coming up to
> speed with my Java - SOAP implementation.
>
> Anyone read it and have an opinion?
>
> thanks,
>
> John
> ************************************************************************
> John E. Conlon
> jconlon@verticon.com
> tel: (770) 886-5470
> fax: (770) 888-6894
> <http://www.verticon.com/>www.verticon.com
> ************************************************************************


Re: Understanding SOAP

Posted by George I Matkovits <ma...@uswest.net>.
It is very Com-ish.
Regads - George

"John E. Conlon" wrote:

> Question for the list:
>
> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
> buy or read?
>
> Context:
> I am not interested in a Microsoft perspective (but I do want to write Java
> to talk with MS implementations) nor one that will confuse me coming up to
> speed with my Java - SOAP implementation.
>
> Anyone read it and have an opinion?
>
> thanks,
>
> John
> ************************************************************************
> John E. Conlon
> jconlon@verticon.com
> tel: (770) 886-5470
> fax: (770) 888-6894
> <http://www.verticon.com/>www.verticon.com
> ************************************************************************


Re: Understanding SOAP

Posted by William Brogden <wb...@bga.com>.

"John E. Conlon" wrote:
> 
> Question for the list:
> 
> Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
> buy or read?
> 
> Context:
> I am not interested in a Microsoft perspective (but I do want to write Java
> to talk with MS implementations) nor one that will confuse me coming up to
> speed with my Java - SOAP implementation.
> 
> Anyone read it and have an opinion?
> 
> thanks,
> 
> John

I am using it as a reference - it is pretty clearly written.

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

RE: Understanding SOAP

Posted by Cory Isaacson <ci...@capita2.com>.
I found that just reading the first sections of the SOAP spec from the W3c
was easier and faster.

Cory

-----Original Message-----
From: John E. Conlon [mailto:jconlon@verticon.com]
Sent: Friday, February 09, 2001 9:10 AM
To: soap-user@xml.apache.org
Subject: Understanding SOAP


Question for the list:

Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
buy or read?

Context:
I am not interested in a Microsoft perspective (but I do want to write Java
to talk with MS implementations) nor one that will confuse me coming up to
speed with my Java - SOAP implementation.

Anyone read it and have an opinion?

thanks,

John
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


RE: Understanding SOAP

Posted by Cory Isaacson <ci...@capita2.com>.
I found that just reading the first sections of the SOAP spec from the W3c
was easier and faster.

Cory

-----Original Message-----
From: John E. Conlon [mailto:jconlon@verticon.com]
Sent: Friday, February 09, 2001 9:10 AM
To: soap-user@xml.apache.org
Subject: Understanding SOAP


Question for the list:

Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
buy or read?

Context:
I am not interested in a Microsoft perspective (but I do want to write Java
to talk with MS implementations) nor one that will confuse me coming up to
speed with my Java - SOAP implementation.

Anyone read it and have an opinion?

thanks,

John
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


Understanding SOAP

Posted by "John E. Conlon" <jc...@verticon.com>.
Question for the list: 

Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
buy or read?

Context:
I am not interested in a Microsoft perspective (but I do want to write Java
to talk with MS implementations) nor one that will confuse me coming up to
speed with my Java - SOAP implementation.

Anyone read it and have an opinion?

thanks,

John
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


Understanding SOAP

Posted by "John E. Conlon" <jc...@verticon.com>.
Question for the list: 

Is the book "Understanding SOAP: The Authoritative Solution" a worthwhile
buy or read?

Context:
I am not interested in a Microsoft perspective (but I do want to write Java
to talk with MS implementations) nor one that will confuse me coming up to
speed with my Java - SOAP implementation.

Anyone read it and have an opinion?

thanks,

John
************************************************************************
John E. Conlon
jconlon@verticon.com
tel: (770) 886-5470
fax: (770) 888-6894
<http://www.verticon.com/>www.verticon.com
************************************************************************


Re: how to send a complex object via SOAP

Posted by Olivier Brand <ol...@intraware.com>.
Sure you can reduce the size by creating a GZIPOutputStream. Then encode
with Base64.

Olivier

Mahendra Babu wrote:

> Hi Florin, I was able to serialize and de-serialize successfully.
> Thanks for all your inputs. One thing I observed was that
> Base64.encode() and Base64.decode() functions seemto consume a lot of
> time. Are there an any other alternate encoding methods available? Is
> it possible to compress the byte array before encoding? so that I
> would be able to reducethe payload. Thanks once again. -Mahendra
> Babu
>
>       soap.jarorg.apache.soap.encoding.soapenc.Base64
>
>           ----- Original Message -----
>           From: Mahendra Babu
>           To: Florin Moldovan
>           Sent: Thursday, February 08, 2001 6:24 PM
>           Subject: Re: how to send a complex object via SOAP
>            Hi Florin, Could you please point me where I
>           could get the Base64 class. It seemsthat it is not
>           a part of core Java. Thanks,Mahendra Babu
>
>                 Hi Mahendra, Let it be a class for
>                serialization/deserialization: public
>                class ObjectSerializerDeserializer {
>                    public static byte[]
>                serialize(Object obj){        // like
>                you said    }
>                    public static Object
>                deserialize(byte deser[]){        // the
>                reversed task    }
>                }  Client side:  ComplexObject co = new
>                ComplexObject(......);
>                  String s=
>                Base64.encode(ObjectSerializerDeserializer.serialize(co));
>
>                  // send the string s via SOAP Server
>                side:  ComplexObject co =
>                (ComplexObject)ObjectSerializerDeserializer.deserialize(Base64.decode(s));
>
>                  // s - is the received string  // now
>                you have the initial object Good luck
>                again.
>

Re: how to send a complex object via SOAP

Posted by Olivier Brand <ol...@intraware.com>.
Sure you can reduce the size by creating a GZIPOutputStream. Then encode
with Base64.

Olivier

Mahendra Babu wrote:

> Hi Florin, I was able to serialize and de-serialize successfully.
> Thanks for all your inputs. One thing I observed was that
> Base64.encode() and Base64.decode() functions seemto consume a lot of
> time. Are there an any other alternate encoding methods available? Is
> it possible to compress the byte array before encoding? so that I
> would be able to reducethe payload. Thanks once again. -Mahendra
> Babu
>
>       soap.jarorg.apache.soap.encoding.soapenc.Base64
>
>           ----- Original Message -----
>           From: Mahendra Babu
>           To: Florin Moldovan
>           Sent: Thursday, February 08, 2001 6:24 PM
>           Subject: Re: how to send a complex object via SOAP
>            Hi Florin, Could you please point me where I
>           could get the Base64 class. It seemsthat it is not
>           a part of core Java. Thanks,Mahendra Babu
>
>                 Hi Mahendra, Let it be a class for
>                serialization/deserialization: public
>                class ObjectSerializerDeserializer {
>                    public static byte[]
>                serialize(Object obj){        // like
>                you said    }
>                    public static Object
>                deserialize(byte deser[]){        // the
>                reversed task    }
>                }  Client side:  ComplexObject co = new
>                ComplexObject(......);
>                  String s=
>                Base64.encode(ObjectSerializerDeserializer.serialize(co));
>
>                  // send the string s via SOAP Server
>                side:  ComplexObject co =
>                (ComplexObject)ObjectSerializerDeserializer.deserialize(Base64.decode(s));
>
>                  // s - is the received string  // now
>                you have the initial object Good luck
>                again.
>