Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi
i have a problem with sending message to WebService

I'm generating code with wsutil.exe, in wsdl and xsd files i have field marked as xsd:date (only date), wsutil.exe generate's this properties as WS_DATETIME.
I can't send message to WebService becouse i have error about invalid date format. For test i have changed xsd:date to xsd:datetime and it all works, but i can't do this on original xsd file.
i'm creating WS_DATETIME from COleDateTime by converting it to SYSTEMTIME next FILETIME and finally using method WsFileTimeToDateTime.

Is there a way to create WS_DATETIME without time or can i use some other way to pass date without time to WebService ?
Posted

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