Forum Discussion

rthupakula's avatar
rthupakula
New Contributor
14 years ago

Unable to process XPath Property Transfer between 2 services

Hi,

I have currently started working on SOAPUI and was struck up "Property Transfer" feature. I wrote down the steps I have adopted to implement this feature.

Can you please help me to fix this issue.

I'm attaching my sample project for your reference, in the attachments.


Details:

I have 2 web services.

The response of one web service should be given as request to the second web service.

Steps done to implement this particular functionality:

1. Under the City_WeatherTest project: We have "GlobalWeatherSoapTestSuite".
2. Under this test suite, we have "GetCitiesByCountryTestCase".
3. Under the Test Case, we have 3 Test Steps.

a. GetCitiesByCountry : This takes the country name as request input and returns the list of cities of that country as response.

b. GetWeather : This takes the city name and country name as request inputs and returns the weather report of that city as response.

c. cityname : This is property transfer step that is used to map the above mentioned steps.

I used XPATH to capture the response of STEP 1 (GetCitiesByCountry) and transfer it to the request of STEP 3 (GetWeather).
I'm failing in this particular STEP and unable to proceed . Please help me to figure out where it is going wrong.
  • Hi!

    the reason seems to be that the result returned by the service packs an XML result into a standard string, to use this as the source for a property transfer you will need to process it as a CDATA section as described in the document at http://www.soapui.org/Functional-Testin ... cdata.html (under the Property Transfers section)

    Hope this helps!

    regards,

    /Ole
    SmartBear Sweden