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?
Joined: Aug 07, 2001
can anybody please answer this?
author and deputy
Joined: Jul 13, 2001
Originally posted by Rashmi Tambe: I a web service deployed which exposes an API that takes the parameter of type "java.Util.Date" and returns a list -
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.
Joined: Jul 13, 2004
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.
Joined: Aug 04, 2000
"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.