Forum Discussion

apandit's avatar
apandit
Occasional Contributor
14 years ago

Datasource value not being replaced in xml request

I just installed SOAP UI Pro. I have created
1. Datasource
2. Xml reqest
3. Inserted datasource values in the xml request
4. Datasource loop

Unfortunately, when I excecute the test, it sends the datasource text (.e.g <Email>${DataSource2#Email}</Email>) instead of actually inserting email from the data source.

Any idea why it might be happening that way. When I tried to run the Datasource tutorial, it worked but when created new project it is failling to insert value.

I appreciate your help.

Thanks,

Ashish

5 Replies

  • Hi,

    My best guess would be :
    You have installed soapUI PRO TRAIL version and the trail period is expired now. So now it will act as Soapui Open Source version only, no pro features would be supported.
    And if this PRO licensed version, then it must have something to do with the DataSource/Field name used in the request. Share more details.

    Best Regards,
    {Pradeep Bishnoi}
    http://learnsoapui.wordpress.com
  • deepesh_jain's avatar
    deepesh_jain
    Frequent Contributor
    apandit wrote:
    1. The PRO license has not expired. I am able to invoke non-REST service with data source and it definitely inserts correct values
    2. I double checked and it is referring to the correct Datasource.

    Any other suggestion? I have attached the project file if that helps.

    Thanks,


    Okay, i did try your project. There seems to be a problem loading the values directly from the data source. There fore you need to include a property transfer step which would take properties email and mobile phone from the data source and populate them to request.
    You would also need to reconfigure your data source loop then to point the target step to properties step.

    I have modified your project and attaching it here for your reference so that you can refer the property transfer step.

    Hope this helps.

    Regards,
    Deepesh Jain
  • apandit's avatar
    apandit
    Occasional Contributor
    Great. It works now. Is would have never thought of it to include namespace

    Is there anything else I can change in a way I define data source or the xml so that I don't have to insert property transfer step?

    Thanks again.
  • deepesh_jain's avatar
    deepesh_jain
    Frequent Contributor
    I think it should work. I guess it even does for SOAP, not sure if it is a bug for REST. You can check with soapui team for that.

    Regards,
    Deepesh Jain