Forum Discussion

lowrider's avatar
12 years ago

Send data with soapUI by command line

Hi,

I am currently using soapUI for sending data to a webservice using SOAP + WSDL with all security involved. This works great. An external program (working on an Oracle database) generates an XML file, which I copy-paste into a SOAP request in my soapUI project and then Submit.

I have to do this weekly, so I would like to automate this. I see on the soapUI site that you can use command line to call tests, but I would like to be able to fill in the SOAP request with my generated XML and then send it. Is this possible in any way?

Thanks in advance!
  • Hi,

    There is no command line option currently to override the request.
    If you are using SoapUI Pro you could use a DataSource type directory which would read the file and save it to a property. Then you use that property in the request. If you don't have the Pro version you would have to do some Groovy scripting to accomplish that.

    http://www.soapui.org/Data-Driven-Testi ... tests.html