The "Not a valid AllXsd value" Error Message

I was recently testing a web service method using SOAP UI and received the following error in regard to one of the method's parameters, which happened to be a date/time value:

"The string '2010-09-23 10:00:00 AM' is not a valid AllXsd value."

The solution was to format the value in YYYY-MM-DDThh:min:seconds.milliseconds format.

For example:

2010-09-23T10:00:00.0000

Use leading zeroes for 1-digit hours. Example:

2010-09-23T09:00:00.0000

In my environment, the milliseconds were optional.

Comments