This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Why the List is treated as Object array and Date as GregorianCalendar? How can I avoide this? I am using Weblogic Server's clientgen ant task to create the stubs from WSDL. Is it the clientgen's limitations? which other utlity does not have this limitation?
Originally posted by Sandeep Bhagavatula: I had the same problem. Java to soap mapping is like that. I ended up having to change the method signature in wrapper. I think I used java.util.calendar and did .gettime() I am not sure.
If you are using AXIS (or otherwise), please refer to http://ws.apache.org/axis/java/user-guide.html and look for "How your Java types map to SOAP/XML types". May be that is the reason the stub that is auto generated has different datatype.
"java.Util.Date" is a java construct. SOAP is "bigger" than just java, and doesn't provide datatypes for all java constructs. There's .NET too, and it doesn't have the same data objects as java in all cases.
SOAP does provide datatypes for very standard datums, like integers, and strings. You can also aggregate these primary datatypes into a complex construct and name it, and use that in SOAP.