XML
  Home arrow XML arrow Page 3 - Creating a Web Service with Web Matrix
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 
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? 
XML

Creating a Web Service with Web Matrix
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-03-22

    Table of Contents:
  • Creating a Web Service with Web Matrix
  • Testing the web service with built-in mini web server
  • Second example: the Pythagoras Theorem
  • Testing this web service

  • 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


    Creating a Web Service with Web Matrix - Second example: the Pythagoras Theorem


    (Page 3 of 4 )

    The web service we create will return the hypotenuse, the longest side of a right angled triangle, c shown in the figure if the values of the sides "b" and "a" are known. This comes through the equation which shows that a, b and c are related by:


    c=square root( a * a + b * b).

    The web service shown in the next picture will deliver the measure of the hypotenuse to the client, provided the client supplies the sides a and b.

    In order to use the mathematics function sqrt, the class System.Math was included using the imports System.Math statement at the top of the page. However, this did not allow returning just sqrt (a*a + b * b). Hence a full reference was given in the return statement.

    More XML Articles
    More By Jayaram Krishnaswamy


       · Evolution is the key for all processes that includes life forms as well as software....
       · how to use this xml webservices to convert the databases
       · It's [the following link to one of my old articles] not a full blown example from...
     

    XML ARTICLES

    - Using Regions with XSL Formatting Objects
    - Using XSL Formatting Objects
    - More Schematron Features
    - Schematron Patterns and Validation
    - Using Schematron
    - Datatypes and More in RELAX NG
    - Providing Options in RELAX NG
    - An Introduction to RELAX NG
    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek