Forum Discussion

Mason's avatar
Mason
Frequent Contributor
15 years ago

XQuery question

So in order to create an XQuery assertion in SoapUI, you must first create a Datasource step with XML as the datasource type, then set the response to a SOAP request as the source, instead of an XML file?  Then you should be able to run XQuery logic against that response as opposed to pointing to an XML file?

So instead of

for $item in doc("order.xml")//item


...how would iterating through a request/response look?  Any sample XQuery code that you could post that would provide an example of how to do an XQuery select against a request/response in SoapUI?

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    You shouldn't be required to create a DataSource for anything. Have you looked at the XQuery part of the userguide? I may be misinterpreting your question, maybe you could clarify it for me a little. What exactly is it you are trying to achieve?

    Regards,
    Dain
    eviware support