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

Popular posts from this blog

How To Mock Out Child Components In Unit Tests of Angular 2 Code

A Generic Method Using HttpClient to Make a Synchronous Get Request

The Cause and Solution for the "System.Runtime.Serialization.InvalidDataContractException: Type 'System.Threading.Tasks.Task`1[YourTypeHere]' cannot be serialized." Exception