Sachin_Sawe
16 years agoContributor
Inserting/Creating new node using Property Transfer?
Ole,
We know how to create / insert / modify nodes in target xml using groovy. However, how do we do that using property transfer? For example, say, you have a request
ABCD
the response of this request is
1234
ABC Corp
blah blah
30.00
...
...
...
now there is a request to buy this book say:
1234
ABC Corp
blah blah
30.00
333-444-4444-888
As shown above I have a need to insert this loyaltycard element but only at the buy time request so that this purchase is tied to that particular loyaltycard in order to gain points on the card for this particular purchase.
Again, I know various ways this can be done using groovy scripting. What I am looking for is some way of NOT USING GROOVY SCRIPTING but using any SOAPUI PRO GUI features that would allow me to insert that optional xml element in the buy request.
Also remember my flow of test steps is
1. Run bookSearch SOAP Request
2. Transfer results of search request to buyBook Request.
so it would not help just hard coding the xml element in buyBook Request as I DO NEED TO pull stuff from results of book search and then put it in buyBook request. It is only after I populate buyBook request with results of search that I need to insert this optional node under 'price' element.
please let me know if this is possible. If so, how?
Regards,
Sachin
We know how to create / insert / modify nodes in target xml using groovy. However, how do we do that using property transfer? For example, say, you have a request
the response of this request is
...
...
...
now there is a request to buy this book say:
As shown above I have a need to insert this loyaltycard element but only at the buy time request so that this purchase is tied to that particular loyaltycard in order to gain points on the card for this particular purchase.
Again, I know various ways this can be done using groovy scripting. What I am looking for is some way of NOT USING GROOVY SCRIPTING but using any SOAPUI PRO GUI features that would allow me to insert that optional xml element in the buy request.
Also remember my flow of test steps is
1. Run bookSearch SOAP Request
2. Transfer results of search request to buyBook Request.
so it would not help just hard coding the xml element in buyBook Request as I DO NEED TO pull stuff from results of book search and then put it in buyBook request. It is only after I populate buyBook request with results of search that I need to insert this optional node under 'price' element.
please let me know if this is possible. If so, how?
Regards,
Sachin