Hi,
I've got difficulties to use properties in a soap response.
When using this syntax:
<ns:currentTime>2019-01-29T14:45:32.345Z</ns:currentTime>, no problems the syntax is Valid regarding the wdsl file given to SoapUI.
I try to replace the fixed string 2019-01-29T14:45:32.345Z by a project property defined as:
Name = dateTime and Value = 2019-01-29T14:45:32.345Z
And use it like this
<ns:currentTime>${Project#dateTime}</ns:currentTime>
The result is Invalid date value: ${Project#dateTime}
ns:currentTime is an xml s:dateTime
Where do I make a mistake ? Thanks.
Solved! Go to Solution.
Unfortunately it doesn't work either. Invalid date value: ${#Project#dateTime}
<ns:bootNotificationResponse>
<ns:status>Rejected</ns:status>
<ns:currentTime>${#Project#dateTime}</ns:currentTime>
<ns:heartbeatInterval>60</ns:heartbeatInterval>
</ns:bootNotificationResponse>
Hi,
The SOAP mock response
The test case
The overview of the project. I've tried different syntax for "dateTime" and nothing seems to work.
"2019-01-29T14:45:32.345Z" => Invalid date value
'2019-01-29T14:45:32.345Z' => Invalid date value
2019-01-29T14:45:32.345Z => Invalid date value
Thanks for your help but I still have the same error message with this syntax.
I've also tried with the other value like heartBeatInterval and I also have the same kind of error.
What does SoapUI check to say thsi is an invalid date value ?
Regards,
Xavier
Yes the error is when I use Validate.
I've cheked, if I don't use validate the mock service works and I can see the current date time.