Click here to Skip to main content
15,887,346 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello.
I've got SOAP service which return datetime in format like "2015-01-22T11:23:15+0100".

When I run WebMethod I get System.InvalidOperationException and message says that "2015-01-22T11:23:15+0100" is not valid AllXsd value.

I want to change deserialization format of datetime, but I dont know how.
Posted
Comments
Joan Magnet 13-Mar-15 11:56am    
You should change DateTime format.
You could try to store it in a string and convert to a valid format.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900