Visual Basic
  Home arrow Visual Basic arrow Page 2 - Developing an XML Web Service Using Visual...
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? 
VISUAL BASIC

Developing an XML Web Service Using Visual Studio 2005
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 68
    2005-12-13

    Table of Contents:
  • Developing an XML Web Service Using Visual Studio 2005
  • Brief explanation of the “Number to Words” XML Web Service
  • Creating XML Web Service using Visual Studio 2005
  • Developing the XML Web Service
  • Developing the XML Web Service continued
  • Executing and testing the XML 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


    Developing an XML Web Service Using Visual Studio 2005 - Brief explanation of the “Number to Words” XML Web Service


    (Page 2 of 6 )

    The XML web service, which we are going to develop now, simply accepts a number (of type “long”) and converts it to words.  Putting it into plain language, if we send “345,” the XML web-service returns the result as “Three hundred forty five.”  Once we host this XML Web Service, we can access it in any application of any platform using any language, even remotely!

    Let us come to the discussion of the inner workings of the “Number to Words” Web service.  Even though the main method is “NumberToWords,” the heart (or processing) of the entire XML web service is divided into four “private” methods as follows:

    • ConvertToWords
    • Process3DigitNumber
    • Process2DigitNumber
    • ProcessSingleDigitNumber

    “ConvertToWords” checks number of places (or digits) in the number and chunks the number based on hundreds, thousands, and so forth. The chunked parts of the number are forwarded to “Process3DigitNumber” (for processing only three digit numbers).  The “Process3DigitNumber” may forward further to “Process2DigitNumber” (for processing only two digit numbers) or “ProcessSingleDigitNumber” based on the argument it received.

    At the moment, “ConvertToWords” can chunk the number to a maximum of hundreds of trillions.  The maximum number could be 999,999,999,999,999 (or 999 trillions).  But, there always exists a chance of extensibility (say quadrillion, quintillion, and so on).  To extend further, you can simply modify and rearrange the “arrays” I declared within “ConvertToWords.”

    Now, let us start developing it.

    More Visual Basic Articles
    More By Jagadish Chaterjee


       · I hope this article gave you a good grounding in how to develop an XML web service,...
       · I'm confortable with web service development. However, you should have completed how...
       · Very good explaination up to this point but cut a bit short. Perhaps it will be...
       · well i guess the title says it all, i need to know how to use it now... do i need...
       · Here is the VB Code for those who don't feel like translating C#.Imports...
       · File->Add to project->create or add an existing onein that project add web...
       · I have the same problem that the undersigned has. The only differance is that I have...
       · My problem is that if the webservice is published to another dir and then that dir...
       · mnjrupp here: May I suggest instead of an Int32 as a parameter, accept a string as a...
       · Development is fine. But how do you proceed to the most important step -...
     

    VISUAL BASIC ARTICLES

    - Developing an XML Web Service Using Visual S...
    - Creating an HTML File List with VB
    - Fun with Email: VB6, CDO, MAPI, and a Remote...
    - Extranet/Intranet Dictionary Cracker in VB
    - Finding Default App Icons With Visual Basic
    - Registry Fever With Visual Basic
    - Implementing An ADO Data Control With VB6
    - Printing With Visual Basic
    - MSMQ Part 1/2: Architecture and Simple Imple...
    - Magnifying The Desktop With Visual Basic
    - Sending Email With MAPI Components in Visual...
    - Two Person Chat With The Winsock Control And...
    - A Real-Time ActiveX News Control
    - Accessing the Windows API in Visual Basic







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