Jeff, Thanks. My problem was that my thinking was too confined. I was looking for a java.somepackage.SomeClass solution. I have tried your suggestion and -of course- it works just as you wrote.
Thanks again, Tom On Mon, Sep 10, 2007 at 09:46:02AM -0400, Walker, Jeff wrote: > 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] > -- Respectfully, Tom Solon, SCJP, FLMI, FFSI, ACS, AIAA, ARA, AAPA, AIRC 630.829.7137 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
