| Author |
Parsing SOAP Message
|
Mehul Sanghvi
Ranch Hand
Joined: Feb 04, 2002
Posts: 134
|
|
Hi, Can anyone suggest which API could be used to transfer xml over SOAP/Http the fastest? I have heard that XML as an attachment is faster than embedded within the body? Rgds, Mehul
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
What are your options and/or restrictions? Are there any standards you need to comply with (other than that the XML document must somehow be transferred over HTTP)?
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Mehul Sanghvi
Ranch Hand
Joined: Feb 04, 2002
Posts: 134
|
|
Thanks for the response. We need to follow SOAP1.1 as standard Typical request XML size would be 360Byte whereas as typical response size would be 1.2KiloByte We would need to extract the XML from SOAPMessage and validate it against the structure and then create corresponding VO containing the request values. Rgds, Mehul
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
Hmm. Parsing such small XML messages should take less than 100ms each. Maybe you could build a prototype service that you could do some preliminary performance tests against?
|
 |
Mehul Sanghvi
Ranch Hand
Joined: Feb 04, 2002
Posts: 134
|
|
Yes, that is what I plan to do. What I wanted to know was, there could be 10 different ways of doing it (not exactly sure how many are there actually), out of which you would know that 3 of them are definitely faster than other 7. If I get to know those 3 then I could concentrate on writing a test proto only for those 3 rather than 10! Thanks! Rgds, Mehul.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
You might want to search IBM developerWorks for articles regarding SOAP performance. There was one article that compared different SOAP encodings' effect on performance. In other words, you should probably pick the API you're going to use with the criteria that the library/product implementing that API will support the optimal/chosen SOAP encoding (not all products support all encodings). [ January 21, 2005: Message edited by: Lasse Koskela ]
|
 |
 |
|
|
subject: Parsing SOAP Message
|
|
|