tag:blogger.com,1999:blog-9236232.post7707745285389843309..comments2023-10-29T19:14:49.183+05:30Comments on A tryst with Shetty: WebServices --- Java/.NET interop issuesChirdeep Shettyhttp://www.blogger.com/profile/14381505283745664367noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-9236232.post-17425592191397306722006-12-25T20:17:00.000+05:302006-12-25T20:17:00.000+05:30This is the reason that I try to avoid dataset. Ni...This is the reason that I try to avoid dataset. Nice Workaround.<br /><br /><br />http://vikasnetdev.blogspot.com/2006/09/why-do-i-perfer-custom-collection-over.htmlVikashttps://www.blogger.com/profile/11330187546301885403noreply@blogger.comtag:blogger.com,1999:blog-9236232.post-25438572978066824162006-12-21T18:50:00.000+05:302006-12-21T18:50:00.000+05:30You could use Java collections on the service, but...You could use Java collections on the service, but the problem occurs during (de)serialization.<br />lets say you expose an ArrayList over a WS interface. Axis would serialize it as a complex type with an element name and min and max occurs tags -- something like this (just to illustrate... may not be what axis generates)<br /><b> "<" element name="value" minOccurs="0" maxOccurs="unbounded" "/> "</b><br />On the .NET side this would not necessarily deserialize to an ArrayList. It would deserialize to a custom object, which is very similar to an ArrayList in structure (or proabably an array). You would then need to convert it to an Arraylist if needed. You could also write a custom serializer/deserializer to do the same. <br />I would much rather convert the ArrayList to an Array on the Java side before sending it over.Chirdeep Shettyhttps://www.blogger.com/profile/14381505283745664367noreply@blogger.comtag:blogger.com,1999:blog-9236232.post-72614951497546726412006-12-20T00:53:00.000+05:302006-12-20T00:53:00.000+05:30You mention several things not to do or to be awar...You mention several things not to do or to be aware of, but you don't explain what trouble they may cause should I use, say java standard collections.Anonymousnoreply@blogger.com