File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parsing SOAP Message

 
Mehul Sanghvi
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
Mehul Sanghvi
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic