SOAP Protocol
Back in 2004, for my end of year university project, I decided to find ways to optimize the SOAP protocol, used for the invocation of web services, and to build an implementation of this protocol with the selected optimizations. During my literature survey I found a lot of research papers focusing on different performance problems of the protocol and proposing solutions.
Using a mix of these different solutions, I built my implementation of a SOAP RPC client and server which I’m posting here:
Binary, source & docs: http://www.vikash-madhow.com/files/soap/SOAP_RPC_0.8_ALL.zip
This server was tested against Apache Axis and had lower response times on almost all tests. The performance results are included in the full documentation found in the /doc folder.
For the sake of simplifying the server to a level that it can easily be grasped and re-used – if needed - by most, I’ve removed anything that I considered not part of the gist of the implementation. This included all the axis performance and interoperability tests, a simple SOAP client and server over the TCP protocol transport used during early tests and an implementation of the SOAP RPC server using the open-source jetty web server. If you want the original implementation, please email and I’ll send it to you.
The implementation contains the following optimizations amongst others:
Enjoy and let me know about any problems that you may encounter. If you reuse part or whole
I only ask for proper acknowledgement of source.
PS: The documentation is in the OpenDocument format and you can download OpenOffice 2 to read it from here: http://www.openoffice.org/
Using a mix of these different solutions, I built my implementation of a SOAP RPC client and server which I’m posting here:
Binary, source & docs: http://www.vikash-madhow.com/files/soap/SOAP_RPC_0.8_ALL.zip
This server was tested against Apache Axis and had lower response times on almost all tests. The performance results are included in the full documentation found in the /doc folder.
For the sake of simplifying the server to a level that it can easily be grasped and re-used – if needed - by most, I’ve removed anything that I considered not part of the gist of the implementation. This included all the axis performance and interoperability tests, a simple SOAP client and server over the TCP protocol transport used during early tests and an implementation of the SOAP RPC server using the open-source jetty web server. If you want the original implementation, please email and I’ll send it to you.
The implementation contains the following optimizations amongst others:
- Uses an XML pull-parser for parsing SOAP messages (instead of a DOM or SAX parser).
- SOAP messages are encoded in the literal format instead of the SOAP encoding format.
- Uses the HTTP chunked transfer encoding for the transmission of SOAP messages which transmits messages in packets known as chunks.
- Compression of SOAP messages.
- Uses HTTP persistent connections and request pipelining.
Enjoy and let me know about any problems that you may encounter. If you reuse part or whole
I only ask for proper acknowledgement of source.
PS: The documentation is in the OpenDocument format and you can download OpenOffice 2 to read it from here: http://www.openoffice.org/