Andreas Veithen wrote:
This is not good.. you should not be sending an XML payload in a SOAP
message as a String! and your payload even has the XML declaration! This is
very poor design and could cause many problems

I totally agree here. However I see (too) many people doing this. Any
idea what makes people choose this approach?
I guess lots of people still use XML as strings, falsely thinking its more optimal.. recently I helped a client who generated loads of XML using String concatenation! And I have even seen some publicly available web services that defines elements such as follows :-)

<strProduct>xxx</strProduct>
<strSubProd>yyy</strSubProd>
<strService>zzz</strService>
<strSvcType />

--
Asankha C. Perera
http://adroitlogic.org

http://esbmagic.blogspot.com

Reply via email to