do you have getter and setter methods for each properties ?

Thanks
Deepal
> This is a part of my project:
>
> A dataype i have defined in a .xsd File
> <complexType name="Rating">
>     <sequence>
>         <element name="userId" type="string"></element>
>         <element name="customerId" type="string"></element>
>         <element name="timestamp" type="dateTime"></element>
>         <element name="rating" type="float"></element>
>     </sequence>
> </complexType>
>
> Via WSDL2Java i get the generated classes. I serialze the objects i use
> during runtime and i have to desialze them. I do so via:
>
> Rating rating = (Rating) BeanUtil.deserialize(Rating.class, element, new
> MultirefHelper(element), new DefaultObjectSupplier());
> Rating rating = (Rating) BeanUtil.deserialize(Rating.class, element, new
> MultirefHelper(element), new DefaultObjectSupplier());
> /* Test outputs */
> System.out.println("Customer Id: "+rating.getCustomerId());
> System.out.println("User id: "+rating.getUserId());
> System.out.println("Timestamp: "+rating.getTimestamp().toString());
> System.out.println("Rating: "+rating.getRating());
>
> But i get only half of the attibutes deserilized. userId and customerId
> won't get initialzed.
>
> Output:
> <rating><userId>ted</userId><customerId>100.100101.1</customerId><timestamp>2007-09-06T11:15:48.085Z</timestamp><rating>1.0</rating></rating>
> Customer Id: null
> User id: null
> Timestamp:
> java.util.GregorianCalendar[time=1189077348085,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2007,MONTH=8,WEEK_OF_YEAR=36,WEEK_OF_MONTH=1,DAY_OF_MONTH=6,DAY_OF_YEAR=249,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=11,HOUR_OF_DAY=11,MINUTE=15,SECOND=48,MILLISECOND=85,ZONE_OFFSET=0,DST_OFFSET=0]
> Rating: 1.0
>
> Any suggestions?
>   


-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to