Forum Discussion

neelrav's avatar
neelrav
Occasional Contributor
15 years ago

Properties transfer error - Help

All,

I am new to using soapUI so please bear with my queries. Using the evaluation copy of soapUI, I am trying to automate the REQUEST step to accept different values from the properties file for each iteration. The REQUEST is:

 

 
     
       
        ?
     

 


My task is to substitue the value for Celcius thru' properties file.

For this, I created the Property (Name = Celsius Value = 25)

Also created the Properties transfer (TransferCelsuis) where:
Source = "Properties" ==== Property = "Celsius"
Target = REQUEST 1 =====Property = "Request"

And within the Target box:

declare namespace soap='http://www.w3.org/2003/05/soap-envelope';
declare namespace ns1='http://tempuri.org/';
//tem:CelsiusToFahrenheit/tem:Celsius/


When I click "Run all Property Transfers", it gives me the error:

[error:Unexpected element:CDATA]

Any help is appreciated.

Thanks.

9 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    you need to change the prefix definition in your target xpath from ns1 to tem;

    declare namespace tem='http://tempuri.org/';
    //tem:CelsiusToFahrenheit/tem:Celsius

    Does that help?

    regards,

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    hmm... can you attach a screenshot of the property-transfer window when you get the error?

    regards!

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    thanks.. hmm.. this looks ok.. can you attach a screenshot of the request as well?

    regards,

    /Ole
    eviware.com
  • neelrav's avatar
    neelrav
    Occasional Contributor
    Here is the attachment for the REQUEST...

    I was just wondering if I need to modify the REQUEST...Currently the value to be replaced (in this case Celcius) is "?".
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    hmm.. can you show the request in the actual "CelsiusToFarenheit.." teststep that you are transferring to?

    regards!

    /Ole
    eviware.com
  • neelrav's avatar
    neelrav
    Occasional Contributor
    See attached...

    When I click on "Run all property transfers" on the Properties Transfer window, it replaces the "CelsiusToFahrenheit - Request 1" to just the number 25....
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    I see that you are using a very old version of soapUI (2.0, open source version). Could you upgrade to the latest version (3.0.1)? Also, in your first post you mentioned that you were using the evaluation version. soapUI is free and open source, and thus does not have an evaluation version. soapUI PRO however does have a 30 day trial, which you may be interested in trying. In fact, the pro version will automatically write the XPATH for the Property Transfer you want to do. Both are available at http://www.soapui.org/. If you are still having problems after upgrading, please let us know!

    Regards,
    Dain
    eviware.com