Forum Discussion

MCotter's avatar
MCotter
Occasional Contributor
13 years ago

[Resolved] Help with Property Transfer

Hi - New to SOAPUI / SOAPUI Pro - and 1st post - hopefully you can help me!

I am trying to test my web service where a submission SOAP request can be resubmitted (e.g further info was required) but it is only a valid resubmission if it contains a Submission ID, Version Number and Response ID (otherwise an error is returned) – these are generated by the Web Service Database and passed back in the response XML to the original submission request.

What I am trying to do here is work out how I can take the Submission ID, Version number and Response ID from that XML and add it to the required fields in my resubmission SOAP Request and then send that.

Is this something you can help me with? The sample project hints at it but I think this is a little more complicated.

4 Replies

  • Hi,

    sure - a property-transfer could do the trick, but I'm not sure of the actual flow here - perhaps you could do like this;

    1) Submission request
    2) Conditional Goto that jumps to 5 if the submission suceeded
    3) Property-Transfer that transfers the required values from the response in (1) to the request in (1)
    4) Script or Conditional Goto that always jumps back to (1)
    5) <whatever you want to do after a successful submission>

    Does that make sense?

    regards!

    /Ole
    SmartBear Software
  • MCotter's avatar
    MCotter
    Occasional Contributor
    Hi

    Thanks for the speedy response - it's appreciated.

    I will look at your suggestion.

    In the meantime the flow for the scenario I have in mind is:

    1 SOAP Submission Request Message
    2 SOAP Response is returned containing the Submission ID, Version Number (see attached file)
    3 I want to add this data to a SOAP request in a node called SubmissionReference and submit this request over the webservice.

    The fields that make up SubmissionReference would be missing from the 1st request as they were not required but for a resubmission they would be needed. The original data in the 1st request will need to be sent again.
  • Hi,

    sure - set up a property-transfer between these two that transfer the desired values from the response of the first teststep to the request of the second one.

    regards,

    /Ole
    SmartBear Software
  • MCotter's avatar
    MCotter
    Occasional Contributor
    thanks Ole

    This works great! Thanks for the help!