You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/04/04 17:19:14 UTC

DO NOT REPLY [Bug 18709] New: - Calendar replacing Date is wsdl transformation

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