Tom, I'm replying to this question, not because I have the answer, but because the question seems strange to me. "What sort of Java object fulfills the requirements of org.apache.axis2.databinding.types.Time ?"
Well, org.apache.axis2.databinding.types.Time is in fact a Java class. So why not just instantiate it (via the 'new' operator, or Spring config file if you prefer your beans made for you) and pass in a java.util.Calendar object? A previous poster recommended java.util.Calendar, because that is what one of the contructors takes as an argument. Or you can also pass in a formatted string, of the form "HH:mm:ss[.SSS][+/-offset]" but it's harder to use. Dates and times are still very difficult to work with in Java. But it's getting better. -jeff -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 8:26 AM To: [email protected] Subject: Re: What Java object fulfills databinding.types.Time? java.util.Calendar wasn't accepted either, but thanks for the suggestion. [javac] InquirePolicySkeleton.java:107: setEntryTime(org.apache.axis2.databinding.types.Time) in inquirepolicy.xsd.AccountingTransactionType cannot be applied to (java.util.Calendar) On Fri, Sep 07, 2007 at 09:44:29PM +0000, Ebert, Chris wrote: > Try 'Calendar' > > -----Original Message----- > Sent: Friday, September 07, 2007 12:53 > To: [email protected] > Subject: What Java object fulfills databinding.types.Time? > > What sort of Java object fulfills the requirements of org.apache.axis2.databinding.types.Time ? > > > I am trying to set a Time in a WSDL record via a Java class. But I have not been able to find a Java return type that satisfies WSDL's desire for an axis2 Time. > > I have tried these types: int, long, double, java.lang.Double, > java.util.Date, java.sql.Time, and even > java.lang.String. > > [javac] InquirePolicySkeleton.java:60: setEntryTime(org.apache.axis2.databinding.types.Time) in inquirepolicy.xsd.AccountingTransactionType cannot be applied to (java.sql.Time) > > -- > Tom Solon, SCJP, FLMI, > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
