Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

Custom datetime deserialization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wakeup - 01 Sep 2006 11:20 GMT
I'm developing a .net client, It acces to a java (axis) web service.

The web service, return dates in a object in GMT by example:
2006-07-13T12:10:22.000Z

But, by default, the proxy class generated in my .net client don't
understand of timezones and don't parse it to my timezone. How can I do a
custom deserialization?

Thanks in advance
Gaurav Vaish (www.EduJini.IN) - 03 Sep 2006 18:13 GMT
Are you using a DateTime as a parameter?
If so, and that your time looks in the standard ISO format, it should be
able to parse..

If you are using simple string as a parameter, DateTime.Parse should work.
Once you have the DateTime instance, you can use the method ToLocalTime to
get the time in your local timezone.

What's the problem that you are facing?

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujini.in | http://articles.edujini.in/webservices
-------------------

> I'm developing a .net client, It acces to a java (axis) web service.
>
[quoted text clipped - 6 lines]
>
> Thanks in advance

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.