File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes SOAP Format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP Format" Watch "SOAP Format" New topic

SOAP Format

tejaswini vasist

Joined: Apr 10, 2004
Posts: 17
I would like to know the length of an entire SOAP object and the number of bytes of header, body, envelope etc.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The only reliable way to get a SOAP message's length on the wire, I believe, is to serialize it and count the bytes. How to do this serialization depends on what you mean by "SOAP object"...

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: SOAP Format
It's not a secret anymore!