Posted By:
Ben_Alexander
Posted On:
Thursday, September 9, 2004 08:11 AM
I'm writing a web service, and a client that uses the service. The service creates, and the client consumes, a class called SMessage. Within SMessage there exists the following data access routines that I wrote: public java.util.Date getCreationDate() { return CreationDate; } public void setCreationDate(java.util.Date newCreationDate) { this.CreationDate = newCreationDate; } So good so far, but when I create the web service, it generates some classes for the client to use, and among them are the routines for manipulating CreationDate. The relevent data access routines, however, now look like this: public java.util.Calendar getCreationDate() { return cre
More>>
I'm writing a web service, and a client that uses the service. The service creates, and the client consumes, a class called SMessage. Within SMessage there exists the following data access routines that I wrote:
public java.util.Date getCreationDate() {
return CreationDate;
}
public void setCreationDate(java.util.Date newCreationDate) {
this.CreationDate = newCreationDate;
}
So good so far, but when I create the web service, it generates some classes for the client to use, and among them are the routines for manipulating CreationDate. The relevent data access routines, however, now look like this:
public java.util.Calendar getCreationDate() {
return creationDate;
}
public void setCreationDate(java.util.Calendar creationDate) {
this.creationDate = creationDate;
}
Why did it change data types for me? All the other data types were preserved by wscompile unchanged. Does anybody have an explanation for this?
Thanks in advance, Ben
<<Less