Tuesday, July 31, 2007

WCF 3.5 Beta2

in WCF 3.5 beta2 , there is a built-in support for Json/Pox support. the service can intercept the client request and bring the Json style object to the client. here is a 5 minutes demo.

first. Add a ajax enabled WCF Service.




then. implement a service which return a object






in the webpage, you can add a service reference to the scriptmanager.


which will render a script proxy to invoke the service .

then in code, can call the wcf service.

function ShowfamousPerson()

{ tempuri.org.HelloWorld.FamousPerson(0, OnComplete); } //you can change the namespace by adding a attribute

function OnComplete(obj) { alert("welcome : " + obj.Name); }


Thursday, July 19, 2007

next week 8/7C

After 4 weeks stay at USA, I find a strange pattern to tell the forcast time schedule in TV. they always say something like the program will be on next Monday, 8/7c. (eight , seven centrol)

So what's the exect time of the forcast means?

try google it, there are two answers.

If the example is 8/7c. Then the program airs at 8 o'clock Eastern and 7 o'clock Central.

Another say the program airs at 8 o'clock you local time and 7 o'clock Central. which one is correct?

the united states mainland has four time zones:
Eastern(-5), Central(-6), Mountain(-7), Pacific(-8).