You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Paco Avila <fa...@gridsystems.com> on 2001/08/20 15:06:04 UTC

XML compression in SOAP messages

Hi, is possible to compress the XML sent in a SOAP message? 
Is this feature include in the SOAP specification?

Re: XML compression in SOAP messages

Posted by Paco Avila <fa...@gridsystems.com>.
I think that is possible to use the gzip algorithm. This is the compression algorithm used in HTTP protocol. Apache can server compresed pages an the browser can decompress it al display as a normal page.
  AFAIK there is no compression-method for SOAP specified

  I would appreciate some infos about a compression-standard that could be implemented on the application level.
  All those perform a pattern-compression (i.e. LZW,ZIP) on the XML-file and take special care about the
  XML-syntax, which means it can yield a better compression.

Re: XML compression in SOAP messages

Posted by Paco Avila <fa...@gridsystems.com>.
I think that is possible to use the gzip algorithm. This is the compression algorithm used in HTTP protocol. Apache can server compresed pages an the browser can decompress it al display as a normal page.
  AFAIK there is no compression-method for SOAP specified

  I would appreciate some infos about a compression-standard that could be implemented on the application level.
  All those perform a pattern-compression (i.e. LZW,ZIP) on the XML-file and take special care about the
  XML-syntax, which means it can yield a better compression.

Re: XML compression in SOAP messages

Posted by Paco Avila <fa...@gridsystems.com>.
> Simple question: why to commpress SOAP messages if transport level does it
> by itself, eg HTTP1.1.
> I think such a things like compression or coding (SSL) are the
> issue on transport level not application level.

Yes, but Tomcat does it? or how can I compress it?


Re: XML compression in SOAP messages

Posted by Paco Avila <fa...@gridsystems.com>.
> Simple question: why to commpress SOAP messages if transport level does it
> by itself, eg HTTP1.1.
> I think such a things like compression or coding (SSL) are the
> issue on transport level not application level.

Yes, but Tomcat does it? or how can I compress it?


Re: XML compression in SOAP messages

Posted by Radek Wisniewski <rw...@datenknecht.de>.
Simple question: why to commpress SOAP messages if transport level does it
by itself, eg HTTP1.1.
I think such a things like compression or coding (SSL) are the
issue on transport level not application level.


Radek Wisniewski
www.datenknecht.de

On Tue, 21 Aug 2001, Christoph C. Cemper / privat wrote:

> Hi,
>
> good point
>
> AFAIK there is no compression-method for SOAP specified
>
> the WAP-transmissions use a proprietary compress-protocol which is not standardized
>
> also a big bank I heard implemented an own, proprietary compression algorithm on their own - no standard
>
> I would appreciate some infos about a compression-standard that could be implemented on the application level.
> All those perform a pattern-compression (i.e. LZW,ZIP) on the XML-file and take special care about the
> XML-syntax, which means it can yield a better compression.
>
> Also the vendors of networking-hardware propose devices that promise a compression of MLs, but those are merely
> for point-2-point or backbone connections, not for application-level compression..
>
> kind regards,
> christoph c. cemper
>   ----- Original Message -----
>   From: Paco Avila
>   To: SOAP User ; SOAP Developer
>   Sent: Monday, August 20, 2001 3:06 PM
>   Subject: XML compression in SOAP messages
>
>
>   Hi, is possible to compress the XML sent in a SOAP message?
>   Is this feature include in the SOAP specification?
>


Re: XML compression in SOAP messages

Posted by Radek Wisniewski <rw...@datenknecht.de>.
Simple question: why to commpress SOAP messages if transport level does it
by itself, eg HTTP1.1.
I think such a things like compression or coding (SSL) are the
issue on transport level not application level.


Radek Wisniewski
www.datenknecht.de

On Tue, 21 Aug 2001, Christoph C. Cemper / privat wrote:

> Hi,
>
> good point
>
> AFAIK there is no compression-method for SOAP specified
>
> the WAP-transmissions use a proprietary compress-protocol which is not standardized
>
> also a big bank I heard implemented an own, proprietary compression algorithm on their own - no standard
>
> I would appreciate some infos about a compression-standard that could be implemented on the application level.
> All those perform a pattern-compression (i.e. LZW,ZIP) on the XML-file and take special care about the
> XML-syntax, which means it can yield a better compression.
>
> Also the vendors of networking-hardware propose devices that promise a compression of MLs, but those are merely
> for point-2-point or backbone connections, not for application-level compression..
>
> kind regards,
> christoph c. cemper
>   ----- Original Message -----
>   From: Paco Avila
>   To: SOAP User ; SOAP Developer
>   Sent: Monday, August 20, 2001 3:06 PM
>   Subject: XML compression in SOAP messages
>
>
>   Hi, is possible to compress the XML sent in a SOAP message?
>   Is this feature include in the SOAP specification?
>


Re: XML compression in SOAP messages

Posted by "Christoph C. Cemper / privat" <ch...@chello.at>.
Hi,

good point 

AFAIK there is no compression-method for SOAP specified

the WAP-transmissions use a proprietary compress-protocol which is not standardized

also a big bank I heard implemented an own, proprietary compression algorithm on their own - no standard

I would appreciate some infos about a compression-standard that could be implemented on the application level.
All those perform a pattern-compression (i.e. LZW,ZIP) on the XML-file and take special care about the
XML-syntax, which means it can yield a better compression.

Also the vendors of networking-hardware propose devices that promise a compression of MLs, but those are merely
for point-2-point or backbone connections, not for application-level compression..

kind regards,
christoph c. cemper
  ----- Original Message ----- 
  From: Paco Avila 
  To: SOAP User ; SOAP Developer 
  Sent: Monday, August 20, 2001 3:06 PM
  Subject: XML compression in SOAP messages


  Hi, is possible to compress the XML sent in a SOAP message? 
  Is this feature include in the SOAP specification?

Re: XML compression in SOAP messages

Posted by "Christoph C. Cemper / privat" <ch...@chello.at>.
Hi,

good point 

AFAIK there is no compression-method for SOAP specified

the WAP-transmissions use a proprietary compress-protocol which is not standardized

also a big bank I heard implemented an own, proprietary compression algorithm on their own - no standard

I would appreciate some infos about a compression-standard that could be implemented on the application level.
All those perform a pattern-compression (i.e. LZW,ZIP) on the XML-file and take special care about the
XML-syntax, which means it can yield a better compression.

Also the vendors of networking-hardware propose devices that promise a compression of MLs, but those are merely
for point-2-point or backbone connections, not for application-level compression..

kind regards,
christoph c. cemper
  ----- Original Message ----- 
  From: Paco Avila 
  To: SOAP User ; SOAP Developer 
  Sent: Monday, August 20, 2001 3:06 PM
  Subject: XML compression in SOAP messages


  Hi, is possible to compress the XML sent in a SOAP message? 
  Is this feature include in the SOAP specification?

URGENT : AddressBook program not running on the Jrun server3.0

Posted by sourav datta <d_...@yahoo.co.in>.
 Hi,

I could not find my error.When I want to run the
sample.addressbook.GetAddress program.The output 
of the TCP Tunnel is as follows:

request:

POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 492
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getAddressFromName xmlns:ns1="urn:AddressFetcher"
SOAP-ENV:encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/">
<nameToLookup xsi:type="xsd:string">
John B.Good
</nameToLookup>
</ns1:getAddressFromName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

response:

HTTP/1.0 500 Internal Server Error
Server: JRun Web Server/3.0
Date: Sun, 13 Aug 2000 13:36:13 GMT
Set-Cookie: jsessionid=330154966173772310;path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: Keep-alive
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Length: 580
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
Deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressbook.Address'
could not be resolved:samples.addressbook.Address
</faultstring>
<faultactor>/soap/servlet/rpcrouter
</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


What I found in the troubleshoot that this program 
occur if the service is not properly deployed.It has
also asked to make sure that all the classes referred 

to form the deploymentdescriptor are available to 
server runtime to load.In addition, whatever classes 
list as serializer/deserializer in the deployment 
descriptor must in fact implement the appropriate
interfaces to be legitimate.



My deployment descriptor looks like below:


Deployed Service Information

	'urn:AddressFetcher' Service Deployment Descriptor 

Property       	 Details 


ID             urn:AddressFetcher 

Scope	       Application 

Provider       java
Type           

Provider       samples.addressbook.AddressBook 
Class		       

Use            false
Static
Class   	        

Methods        getAddressFromName, addEntry,
               getAllListings, putListings 

Type
Mappings       [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-   
          demo:address,javaType=samples.addressbook.
          Address,java2XMLClassName=org.apache.soap.
          encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.   
          encoding.soapenc.BeanSerializer]
               [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-
          demo:phone,javaType=samples.addressbook.
          PhoneNumber,java2XMLClassName=org.apache.
          soap.encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.encoding.
          soapenc.BeanSerializer] 

Default
Mapping
Registry
Class  



Maybe someone can help me.

regards,
sourav

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com

URGENT : AddressBook program not running on the Jrun server3.0

Posted by sourav datta <d_...@yahoo.co.in>.
Hi,

I could not find my error.When I want to run the
sample.addressbook.GetAddress program.The output 
of the TCP Tunnel is as follows:

request:

POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 492
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getAddressFromName xmlns:ns1="urn:AddressFetcher"
SOAP-ENV:encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/">
<nameToLookup xsi:type="xsd:string">
John B.Good
</nameToLookup>
</ns1:getAddressFromName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

response:

HTTP/1.0 500 Internal Server Error
Server: JRun Web Server/3.0
Date: Sun, 13 Aug 2000 13:36:13 GMT
Set-Cookie: jsessionid=330154966173772310;path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: Keep-alive
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Length: 580
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
Deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressbook.Address'
could not be resolved:samples.addressbook.Address
</faultstring>
<faultactor>/soap/servlet/rpcrouter
</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


What I found in the troubleshoot that this program 
occur if the service is not properly deployed.It has
also asked to make sure that all the classes referred 

to form the deploymentdescriptor are available to 
server runtime to load.In addition, whatever classes 
list as serializer/deserializer in the deployment 
descriptor must in fact implement the appropriate
interfaces to be legitimate.



My deployment descriptor looks like below:


Deployed Service Information

	'urn:AddressFetcher' Service Deployment Descriptor 

Property       	 Details 


ID             urn:AddressFetcher 

Scope	       Application 

Provider       java
Type           

Provider       samples.addressbook.AddressBook 
Class		       

Use            false
Static
Class   	        

Methods        getAddressFromName, addEntry,
               getAllListings, putListings 

Type
Mappings       [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-   
          demo:address,javaType=samples.addressbook.
          Address,java2XMLClassName=org.apache.soap.
          encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.   
          encoding.soapenc.BeanSerializer]
               [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-
          demo:phone,javaType=samples.addressbook.
          PhoneNumber,java2XMLClassName=org.apache.
          soap.encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.encoding.
          soapenc.BeanSerializer] 

Default
Mapping
Registry
Class  



Maybe someone can help me.

regards,
sourav

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct
polls, organize chat 
events. Visit http://in.groups.yahoo.com.


____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com

URGENT : AddressBook program not running on the Jrun server3.0

Posted by sourav datta <d_...@yahoo.co.in>.
 Hi,

I could not find my error.When I want to run the
sample.addressbook.GetAddress program.The output 
of the TCP Tunnel is as follows:

request:

POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 492
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getAddressFromName xmlns:ns1="urn:AddressFetcher"
SOAP-ENV:encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/">
<nameToLookup xsi:type="xsd:string">
John B.Good
</nameToLookup>
</ns1:getAddressFromName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

response:

HTTP/1.0 500 Internal Server Error
Server: JRun Web Server/3.0
Date: Sun, 13 Aug 2000 13:36:13 GMT
Set-Cookie: jsessionid=330154966173772310;path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: Keep-alive
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Length: 580
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
Deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressbook.Address'
could not be resolved:samples.addressbook.Address
</faultstring>
<faultactor>/soap/servlet/rpcrouter
</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


What I found in the troubleshoot that this program 
occur if the service is not properly deployed.It has
also asked to make sure that all the classes referred 

to form the deploymentdescriptor are available to 
server runtime to load.In addition, whatever classes 
list as serializer/deserializer in the deployment 
descriptor must in fact implement the appropriate
interfaces to be legitimate.



My deployment descriptor looks like below:


Deployed Service Information

	'urn:AddressFetcher' Service Deployment Descriptor 

Property       	 Details 


ID             urn:AddressFetcher 

Scope	       Application 

Provider       java
Type           

Provider       samples.addressbook.AddressBook 
Class		       

Use            false
Static
Class   	        

Methods        getAddressFromName, addEntry,
               getAllListings, putListings 

Type
Mappings       [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-   
          demo:address,javaType=samples.addressbook.
          Address,java2XMLClassName=org.apache.soap.
          encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.   
          encoding.soapenc.BeanSerializer]
               [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-
          demo:phone,javaType=samples.addressbook.
          PhoneNumber,java2XMLClassName=org.apache.
          soap.encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.encoding.
          soapenc.BeanSerializer] 

Default
Mapping
Registry
Class  



Maybe someone can help me.

regards,
sourav

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com

URGENT : AddressBook program not running on the Jrun server3.0

Posted by sourav datta <d_...@yahoo.co.in>.
Hi,

I could not find my error.When I want to run the
sample.addressbook.GetAddress program.The output 
of the TCP Tunnel is as follows:

request:

POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 492
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getAddressFromName xmlns:ns1="urn:AddressFetcher"
SOAP-ENV:encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/">
<nameToLookup xsi:type="xsd:string">
John B.Good
</nameToLookup>
</ns1:getAddressFromName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

response:

HTTP/1.0 500 Internal Server Error
Server: JRun Web Server/3.0
Date: Sun, 13 Aug 2000 13:36:13 GMT
Set-Cookie: jsessionid=330154966173772310;path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: Keep-alive
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Length: 580
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:
SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
Deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressbook.Address'
could not be resolved:samples.addressbook.Address
</faultstring>
<faultactor>/soap/servlet/rpcrouter
</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


What I found in the troubleshoot that this program 
occur if the service is not properly deployed.It has
also asked to make sure that all the classes referred 

to form the deploymentdescriptor are available to 
server runtime to load.In addition, whatever classes 
list as serializer/deserializer in the deployment 
descriptor must in fact implement the appropriate
interfaces to be legitimate.



My deployment descriptor looks like below:


Deployed Service Information

	'urn:AddressFetcher' Service Deployment Descriptor 

Property       	 Details 


ID             urn:AddressFetcher 

Scope	       Application 

Provider       java
Type           

Provider       samples.addressbook.AddressBook 
Class		       

Use            false
Static
Class   	        

Methods        getAddressFromName, addEntry,
               getAllListings, putListings 

Type
Mappings       [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-   
          demo:address,javaType=samples.addressbook.
          Address,java2XMLClassName=org.apache.soap.
          encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.   
          encoding.soapenc.BeanSerializer]
               [TypeMapping encodingStyle=
          http://schemas.xmlsoap.org/soap/encoding/,
          elementType=urn:xml-soap-address-
          demo:phone,javaType=samples.addressbook.
          PhoneNumber,java2XMLClassName=org.apache.
          soap.encoding.soapenc.BeanSerializer,
          xml2JavaClassName=org.apache.soap.encoding.
          soapenc.BeanSerializer] 

Default
Mapping
Registry
Class  



Maybe someone can help me.

regards,
sourav

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct
polls, organize chat 
events. Visit http://in.groups.yahoo.com.


____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com