Vugen Web Service Protocol - Vugen 12.60 converting a timestamp

Hi Everyone

It’s seems the most simplest of problems that should be easily resolvable.  The highlighted times below, are being converted by vugen into a different format and sent to the service.  The service doesn’t like the long format.Is there any simple way of ensuring that the format that is sent to the service is just the same as what I have input?   I’m using the Web Services protocol, the format of the field in the dtd is xs:time

** My VUGEN script ***

"<ScheduleInfo>"
                        "<ScheduleInfoType>"
                            "<originPort>DUB</originPort>"
                            "<destinationPort>SYD</destinationPort>"
                            "<departureTime>02:00:00</departureTime>"
                            "<arrivalTime>17:40:00</arrivalTime>"
                        "</ScheduleInfoType>"
                    "</ScheduleInfo>"

 ** What VUGEN is SENDING out **

 <ScheduleInfo>
<originPort>DUB</originPort>
<destinationPort>SYD</destinationPort>
<departureTime>02:00:00.0000000 00:00</departureTime><arrivalTime>17:40:00.0000000 00:00</arrivalTime>
</ScheduleInfo>

Many Thanks

Claire

Parents
  • Hi Claire, 

    maybe my suggestion is too simple and you have already try it: go on the Parameters window, then create a new item and select "Parameter type" as "Date/Time"; you can choose the data format from the list below or modify some automatic suggestions. In your case, try to use %H:%M:%S, it must be correct. 

    Tell me if this can help you, 

    Lorenzo

Reply
  • Hi Claire, 

    maybe my suggestion is too simple and you have already try it: go on the Parameters window, then create a new item and select "Parameter type" as "Date/Time"; you can choose the data format from the list below or modify some automatic suggestions. In your case, try to use %H:%M:%S, it must be correct. 

    Tell me if this can help you, 

    Lorenzo

Children