Forum Discussion

BA_Service_Haus's avatar
BA_Service_Haus
Regular Contributor
15 years ago

Wrong XPath generation for XML DataSource

Hi,

the error was found in SoapUI Pro 3.5.1 and 3.6.

To use the response response data of a request as input for multiple calls of another request we use a DataSource test step of type "XML".



When running the test the first time, the "Column Xpath" values were only used, if there namespace was the first one defined in "Row XPath". The other values were not writen to the data source. (In some testcases a error occured: "ERROR:An error occured [net.sf.saxon.trans.XPathException: XPath syntax error at char 16 in {ns3:bankleitzahl[1}:")

After investigation, we think that the automatical generation of the "Row XPath" content (using the select button) is wrong, as every namespace is followed by a ";". Removing this semicolon for all but the last namespace definitions is fixing this error.

Best regards
Nico