Is it possible that XML is too big to Java transform ?
mauroa85 Jan 28, 2014 11:24 AMHi,
i have a problem trasnforming my output it is malformated and i dont understand why it behaves like this
.
Im ussing a Java Trasnformer
The reult of the service is a String
executing my webservice directly throught SoapUi directly i have this result :
(XML String)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:equipmentSearchResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.smartering.org/smartd/EquipmentConfigurationServices">
<equipmentSearchReturn xsi:type="xsd:string"><![CDATA[<response><info><EquipmentListList id='25707739'><EquipmentList><createUsrId></createUsrId><createDtHor>20120312144232</createDtHor><equipmentId>qweqwq</equipmentId><companyId>EDI</companyId><equipmentTypeId>ss</equipmentTypeId><equipmentType>meterId</equipmentType><mark>xxx</mark><model>AAA</model><serialNumber>XXXX</serialNumber><cil></cil><cliName></cliName><state>C</state><reference>qwewe</reference><commReference></commReference><dtState>XXXX</dtState><configCreateUsr>GAT</configCreateUsr><configDtHor>20120312144232</configDtHor><configState>D</configState><connectionCode></connectionCode><connectionPointId>0</connectionPointId><ddCode></ddCode><ddDescription></ddDescription><ccCode></ccCode><ccDescription></ccDescription><fffCode></fffCode><fffDescription></fffDescription><lllCode></lllCode><lllDescription></lllDescription><streetId>0</streetId><streetIdDescription></streetIdDescription><beginDate>19700101000000</beginDate><endDate>99991231235900</endDate><version>0</version><custom1></custom1><custom2></custom2><custom3></custom3><commState>2</commState><commStateDesc></commStateDesc><dateCommState>20120323154524</dateCommState><swVersion></swVersion><lanState>I</lanState><lanDtState>XVVXVXVVXV</lanDtState><listEntityAttr></listEntityAttr><listCustomEntityAttr></listCustomEntityAttr><registerAction></registerAction></EquipmentList></EquipmentListList></info><status><code>0</code><message></message><title>null</title><icon>null</icon><button>null</button></status></response>]]></equipmentSearchReturn>
</ns1:equipmentSearchResponse>
</soapenv:Body>
</soapenv:Envelope>
im calling webservice that returns the same result it comes as XML
<searchEquipmentSoaResponse>
<response>
<info>
<EquipmentListList id="22948120">
<EquipmentList>
<createUsrId/>
<createDtHor>20120312144232</createDtHor>
<equipmentId>XXX</equipmentId>
<companyId>EDI</companyId>
<equipmentTypeId>XXX</equipmentTypeId>
<equipmentType>meterId</equipmentType>
<mark>XXX</mark>
<model>AAA</model>
<serialNumber>XXXXXA</serialNumber>
<cil/>
<cliName/>
<state>C</state>
<reference>XASASASASA</reference>
<commReference/>
<dtState>20120312144232</dtState>
<configCreateUsr>G</configCreateUsr>
</EquipmentList>
</EquipmentListList>
</info>
</response>
</searchEquipmentSoaResponse>
Even if a i Add CDATA after the tag <searchEquipmentSoaResponse> the reult will be the same
I lost Information. Should i use other type of Trasnformers like JAXB or Smooks?