Ask a Question

in need of an example how to feed response into a request...

joan_fisher
Occasional Contributor

in need of an example how to feed response into a request...

Can some one please provide me with an example I could mimic of how I could grab one or two parameters in a response and feed them into the corresponding two parameters of a request?  Specifically, I have a fetch and save pairing in my test case....I want to be able to fetch a record, alter a parameter in the result and save the change.....I am having trouble implementing this!! Much thanx!
3 REPLIES 3
SmartBear_Suppo
SmartBear Alumni (Retired)

Hi Joan,

sure! Are the SOAP responses/requests or "just" REST/HTTP? Can you show the source and target message you want to transfer between?

regards!

/Ole
eviware.com

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
joan_fisher
Occasional Contributor

Hi Ole! Sorry for the delayed reply to your query..I was pulled onto another project so shelved this conundrum temporarily!! Anyway...it is a soap request/response chain:
(I am fetching a particular record and want to change one of the fields of that record to Approved and execute a request to save this changed record....)

request:



     
       
        ?
       
        ?
       
        ?
       
        ?
     

 

 
     
       
       
           
            ?
           
            ?
           
            ?
            ?
            ?
            ?
            ?
       

     

 


response:


 
     
       
            831643
            Success
           
             
                  1624
                  5633
                  Monthly
                  PendingApproval
                  100.0000
                  0.0000
                  100.0000
                  2.1000
                 
                 
                  BREMERTON
                  false
                  2.1000
                  2009-10-22T20:51:49.667
                 
                  false
                  false
                  0001-01-01T00:00:00
                  0
                  false
                  PaperReturn
                  0.0000
                  0.0000
                 
                  0
                  100.0000
                  0.0000
                 
                 
                  2.1000
                  2.1000
                  0.0000
                  0.0000
                  false
                  0.0000
                  0.0000
                  0.0000
                  0.0000
                  0.0000
                  0.0000
                  0001-01-01T00:00:00
                  0
                 
                  0
             

           

            1
       

     

 

Hope this is enough info to give you an idea of what I need!
Thanx for your help!!
Joan
SmartBear_Suppo
SmartBear Alumni (Retired)

Hello,

I suggest use groovy test step to extract data you need, modify and send it to next request. Check here: http://www.soapui.org/userguide/functional/groovystep.html , there are examples too.

Let me know does it help,
robert

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: