Forum Discussion

irene_smile's avatar
irene_smile
Occasional Contributor
17 years ago

Using a value from response as input value for another request

Hello!

I need to use the id from a response in a request for another operation.
Example:
- Send a request to create customer. Response has customer id
- Copy Customer id into a second request for create invoice
- Execute a load test on create invoice that creates a customer and creates an invoice for that customer.

How can I automatically insert response from create customer as input to create invoice request?
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    create a Property-Transfer step between your two requests and add a transfer to it that transfers the desired value from the response of your first step to the request of the second one. Use XPath to specify exactly which source and target nodes that should be used (if you are using soapUI Pro there are wizards for generating the XPath expressions for you).

    Good Luck!

    regards,

    /Ole
    eviware.com