Hmm , then please create a JIRA and attach your wsld and whatever
necessary to re-create the issue,
Thanks
Deepal
omega-psi wrote:
> Actually yes.
>
> I used the WSDL2Java tool to convert my via .xsd defined datatypes into Java
> classes... any ideas?
>
> Best regards
>
>
> Deepal Jayasinghe-2 wrote:
>
>> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]