hi Virtual ,
Could you please send (or create a JIRA) us your java class and
necessary classes so that we can see what actually happening
Thanks
Deepal
I have the following xml that is being returned from a DB. I have
checked the xml and it is well formed:
<absMet:GetLinkDataRspPayloadType
xmlns:absMet="http://webservices.elsevier.com/schemas/metadata/abstracts/types/v7">
<absMet:citedLinkDataList>
<absMet:citedLinkData>
<linkData>
<inputKey>
<eid>2-s2.0-19744366850</eid>
</inputKey>
<eid>2-s2.0-19744366850</eid>
<doi>10.1016/j.snb.2004.09.044</doi>
<refKey>
<FirstAuthorSurname>Rothschild</FirstAuthorSurname>
<YearOfPublication>2005</YearOfPublication>
<FirstPageNumber>223</FirstPageNumber>
<LastPageNumber>230</LastPageNumber>
<FirstInitialFirstAuthor>A</FirstInitialFirstAuthor>
</refKey>
<ivip>
<ISSN>09254005</ISSN>
<Volume>108</Volume>
<Issue>1-2</Issue>
<Page>223</Page>
</ivip>
<dbname>scopusbase</dbname>
</linkData>
<recordType>c</recordType>
<citedByCount>0</citedByCount>
</absMet:citedLinkData>
</absMet:citedLinkDataList>
</absMet:GetLinkDataRspPayloadType>
The GetLinkDataRspPayloadType is a java object generated with
WSDL2Java with ADB data binding. I have been trying to deserialize
the xml into the java object but can't seem to get it to work. I get
no errors but I get no values in the object. I am using the following
to get the xml string into an OMElement which appears to work fine as
a toString on the created OMElement displays the results with the
values.
try
{
OMElement ele =
org.apache.axiom.om.impl.llom.util.AXIOMUtil.stringToOM(xml);
I have tried a couple of the BeanUtil.deserialize methods.
returnValue =
(GetLinkDataRspPayloadType)BeanUtil.deserialize(GetLinkDataRspPayloadType.class,
ele, new DefaultObjectSupplier(), null);
I have tried the above deserialize method and it appears to generate
the correct object, however it is not filling in the values. I also
tried the deserialize method that takes a MultirefHelper but this
method did not generate a proper object. Obviously I have missed
something with doing this. Any help or pointers would be appreciated.
Regards,
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]