axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18709] New: - Calendar replacing Date is wsdl transformation
Date Fri, 04 Apr 2003 15:19:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18709>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18709

Calendar replacing Date is wsdl transformation

           Summary: Calendar replacing Date is wsdl transformation
           Product: Axis
           Version: 1.1rc2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: aedemar.cooke@rbc.com


I have a interface and class which contain a method that returns a 
java.util.Date.

public java.util.Date getRIBSDate() throws java.rmi.RemoteException;

When I generate the wsdl using org.apache.axis.wsdl.Java2WSDL the wsdl message 
is:

 <wsdl:message name="getRIBSDateResponse">

      <wsdl:part name="getRIBSDateReturn" type="xsd:dateTime"/>

   </wsdl:message>

Then I use org.apache.axis.wsdl.WSDL2Java to generate the java files for the 
web service and the Date has been changed to a java.util.Calendar

public java.util.Calendar getRIBSDate() throws java.rmi.RemoteException;

This causes compilation errors and mean that either

a) I manually update the Axis generated files to return a java.util.Date
or
b) I change my original Method to return a java.util.Calendar.  

I would like not to have to do either.  Is this possible?

Thanks,

Aedemar

Mime
View raw message