Forum Discussion

xavier1's avatar
xavier1
Occasional Contributor
7 years ago
Solved

Invalid date value in SOAP Response

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.

 

 

 

12 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    Trivial error.
    Use - ${#Project#dateTime}
    • xavier1's avatar
      xavier1
      Occasional Contributor

       

      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>

       

      • nmrao's avatar
        nmrao
        Community Hero
        xavier1,
        Can you please show it with screen shots? How it is saved in properties, how it is placed in the request, and actual error from server side.