This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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]
subject: SOAP Format
Similar Threads
C++ to Java communication for Game Server
WA #1.....word association
I am dense
Jini a Web Service ?
New IBM Cert - Developing Web Services