Error parsing my XML response

0

I'm trying to get some data using Web Sevice Data Source utility on Jasper Studio 6.2.0 accroding to instrutions provided.

I get the response from my server, I added a field to be extracted from the response.

When I'm trting to refresh preview data on Data preview tab exception is occured:

Error while parsing the response from the server with language xml
The server has retruned the following response: 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tcs="ENMAC/TCS">
   <soapenv:Header/>
   <soapenv:Body>
      <tcs:NPLInsertResponse>
         <tcs:NPLInsertResponseStc>
            <tcs:Status>123</tcs:Status>
         </tcs:NPLInsertResponseStc>
      </tcs:NPLInsertResponse>
   </soapenv:Body>
</soapenv:Envelope>
Response Code: 200
Server request information 
Additional informations: 
net.sf.jasperreports.engine.JRException: Xalan XPath selection failed. Expression: /soapenv:Envelope/soapenv:Body/tcs:NPLInsertResponse/tcs:NPLInsertResponseStc
at com.jaspersoft.webservice.data.query.WebServiceQueryExecuter.createDatasource(WebServiceQueryExecuter.java:187)
at com.jaspersoft.webservice.data.query.WebServiceQueryExecuter.createDatasource(WebServiceQueryExecuter.java:1)
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1129)
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:696)
at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:437)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:526)
at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:164)
at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:474)
at com.jaspersoft.studio.data.reader.DatasetReader.start(DatasetReader.java:225)
at com.jaspersoft.studio.property.dataset.dialog.DataPreviewTable$4.run(DataPreviewTable.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: net.sf.jasperreports.engine.JRException: Xalan XPath selection failed. Expression: /soapenv:Envelope/soapenv:Body/tcs:NPLInsertResponse/tcs:NPLInsertResponseStc
at net.sf.jasperreports.engine.util.xml.XalanXPathExecuter.selectNodeList(XalanXPathExecuter.java:59)
at net.sf.jasperreports.engine.data.JRXmlDataSource.moveFirst(JRXmlDataSource.java:420)
at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:188)
at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:197)
at com.jaspersoft.webservice.data.xml.WSXmlDataSource.<init>(WSXmlDataSource.java:104)
at com.jaspersoft.webservice.data.xml.XmlQueryExecuterWrapper.createDatasource(XmlQueryExecuterWrapper.java:77)
at com.jaspersoft.webservice.data.query.WebServiceQueryExecuter.createDatasource(WebServiceQueryExecuter.java:177)
... 10 more
Caused by: org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: soapenv
at org.apache.xpath.compiler.XPathParser.errorForDOM3(XPathParser.java:655)
at org.apache.xpath.compiler.Lexer.mapNSTokens(Lexer.java:647)
at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:274)
at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:98)
at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:112)
at org.apache.xpath.XPath.<init>(XPath.java:178)
at org.apache.xpath.CachedXPathAPI.eval(CachedXPathAPI.java:288)
at org.apache.xpath.CachedXPathAPI.selectNodeList(CachedXPathAPI.java:222)
at org.apache.xpath.CachedXPathAPI.selectNodeList(CachedXPathAPI.java:202)
at net.sf.jasperreports.engine.util.xml.XalanXPathExecuter.selectNodeList(XalanXPathExecuter.java:57)
... 16 more

Does anybody know how to fix this problem?

sasha87satpaev's picture
Joined: Mar 22 2016 - 1:02am
Last seen: 2 years 11 months ago

0 Answers:

No answers yet
Feedback
randomness