| Edmon Begoli 的个人资料hGadget Project Space照片日志列表 | 帮助 |
|
8月2日 While we are waiting ...We did not have any results yet regarding my daughter. She is doing fine but only lab results will tell us complete story.
Went to bed last night around 4:00 AM, maybe 4:30 AM.
Woke up around 10:00 AM. Could not go to work because we had to wait for the doctor to call. I also could not be on a conference call for the same reason.
While waiting, in a half-asleep state I was writing some web services and UI component for device management.
I was once again reminded and impressed how simple and easy is to do web services in .NET (my primary skill was always J2EE).
Here is the class that delegates device management operations to INSTEON's objects:
[ WebService(Namespace = "http://tempuri.org/")][ WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]public class DeviceManagerWS : System.Web.Services.WebService {... and here is one method that allows me to verify status of my home devices/appliances:
[ WebMethod] public String GetStatus(String deviceID){ return sdm3.GetOnLevelText( deviceID ); } To test it from the browser just right click on the WebSerbice and select "View in Browser" WebService interface opens in the browser:
then select the service. It opens the very handy form for testing of the service, plus it gives the SOAP 1.1, 1.2 and REST interface descriptions.
引用通告此日志的引用通告 URL 是: http://madeinexpress5.spaces.live.com/blog/cns!A76D9BC62DCF3521!144.trak 引用此项的网络日志
|
|
|