Hello,
I'm getting the above error when trying to map some XML received from a
webservice to Java objects using JiBX. I'm using version 1.1.5 and Spring.
Here's the XML that I'm trying to map:
<readsResponse>
<readsResult>
<errorText/>
<readArray>
<siteRead>
<referenceNumber>1</referenceNumber>
<serialNumber>1</serialNumber>
<readValue>170.90</readValue>
</siteRead>
... many more of these siteRead objects...
</readArray>
</readsResult>
</readsResponse>
Here's the mapping:
<binding direction="input">
<mapping name="readsResponse" class="<package>.ReadsResponse">
<structure name="readsResult" get-method="getReadsResult"
set-method="setReadsResult">
<value name="errorText" get-method="getErrorText"
set-method="setErrorText" />
<collection get-method="getReadArray" set-method="setReadArray"
factory="<package>.ReadsResult.readArrayFactory">
<structure name="siteRead" type="<package>.SiteRead">
<value name="referenceNumber" get-method="getReferenceNumber"
set-method="setReferenceNumber" />
<value name="serialNumber" get-method="getSerialNumber"
set-method="setSerialNumber" />
<value name="readValue" get-method="getReadValue"
set-method="setReadValue" />
</structure>
</collection>
</structure>
</mapping>
</binding>
The error I'm getting is:
An unexpected exception occurred
JiBX unmarshalling exception: Expected "readsResult" end tag, found "readArray"
start tag (line -1, col -1)
Thanks in advance for any assistance,
Mark
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users