Web Services
  Home arrow Web Services arrow Page 5 - Accessing Devices Using a Web Service
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

Accessing Devices Using a Web Service
By: Terry Ess
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 16
    2004-01-14

    Table of Contents:
  • Accessing Devices Using a Web Service
  • HTTP Requests and Responses
  • XML
  • Web Service Implementation
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Accessing Devices Using a Web Service - Conclusion


    (Page 5 of 5 )

    With a little bit of knowledge and a relatively small piece of software (the example implementation is only a little over 400 lines of C++) we can provide a Web service.  Because of the very restricted nature of this implementation, we can provide this service in a very small footprint and with high security while still providing our customers with the information they need.  If we implement the Web service as a separate process, we can achieve small size, high security and robustness.  Such an implementation is provided in T. H. E. Solution’s PC on the factory floor toolkit (see http://www.the-solution-llc.com/development_tools.htm).  Like most engineering solutions, there are limitations.  The primary limitations are:

    1. This solution is designed to support a relatively small number of connections (in the dozens not hundreds).  Because of the limited number of connections supported, client use of proxy web servers can cause a problem.

    2. Obviously the limited number of connections makes the Web service highly vulnerable to denial of service attacks.  Part of the rational behind the two-channel remote access approach is to provide a separate “unknown” path for remote control access.

    3. The XML used in this example is extremely simple in nature.  Many industry groups are developing specific rules and definitions for data interchange.  Specific applications should take advantage of such style sheets when they exist.

    4. The examples all use a static IP address for the Web service.  This may or may not be a good solution for any specific application.  The requirement to support dynamic IP addressing can significantly complicate the solution.  This is especially true if the application’s environment only provides limited support for configuration and naming services such as DHCP and DNS.

    5. The most complicated area of the web service concept, and one still very much in progress, is the means to dynamically locate web services and determine the nature of the service.  This has not been addressed at all for two reasons.  First, in all practical cases this would be handled exterior to the device.  Second, it is not at all clear that this type of registry capability is applicable to the problem we are trying to solve.

    References

    World Wide Web Consortium (W3C)
    Specifications of numerous Web protocols including HTTP and XML
    http://www.w3.org/

    Matthew Powell and Leon Brackhnski
    HTTP Revealed
    Microsoft Interactive Developer, September 1996

    David Cook
    Write a Simple HTTP-based Server using MFC and Windows Sockets
    Microsoft Systems Journal, February 1996

    Microsoft Corporation
    XML Tutorial
    MSDN Library, July 2001


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    WEB SERVICES ARTICLES

    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...
    - WS Notification and WS Topics in the WS Reso...
    - Introducing the Implied Resource Pattern
    - Web Services and Stateful Resources
    - Deploying an EJB Application






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT