Having issues in running SOAP API in JMETER



  • Hi I'm try to execute a soap api script on jmeter but is returning 500. It's executing fine on SOAPUI

    POST http://webservices.truckstop.com/v13/CACCI/Report.svc

    Header manager: Content-Type: text/xml; charset=utf-8

    Here's my body data:soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v9="http://webservices.truckstop.com/v9" xmlns:web="http://schemas.datacontract.org/2004/07/WebServices" xmlns:web1="http://schemas.datacontract.org/2004/07/WebServices.CACCI"> 313531 uN648Msf UNIQUESOFTWAREWS Fusion QA Carrier 1 3049485 222222 ? ```



  • It might be the case you need to pass SOAPAction header as well

    In general given the request works fine in SoapUI you should be able to record it in JMeter:

    1. Start JMeter's HTTP(S) Test Script Recorder
    2. Configure SoapUI to use JMeter as the proxy

      enter image description here

    3. Start the request in SoapUI
    4. JMeter should store the relevant HTTP Request sampler under the Recording Controller

    Alternatively you can use soapui2yaml tool which can convert your SoapUI script into Taurus YAML format which in its turn can be converted into a JMeter script if you run bzt your_script.yaml -gui command


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2