Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 4 - Creating a VB.NET Client for a ColdFusion ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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.NET

Creating a VB.NET Client for a ColdFusion Web Service
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2006-03-21

    Table of Contents:
  • Creating a VB.NET Client for a ColdFusion Web Service
  • Description of the ColdFusion Web Service
  • Creating a Web Reference
  • Creating the Client User Interface

  • 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 VB.NET Client for a ColdFusion Web Service - Creating the Client User Interface


    (Page 4 of 4 )

    On the WebClient.aspx page, to the design view add a textbox which picks up the argument that is passed to the web service. You will also need a button to call the web service when clicked, and a Required Field Validator so that user is prompted to type in text, if he or she did not do so.

     

    Fig.6

    Fig.7 shows the code being written and the intellisense coming to the rescue. Observe the pop-up right after typing in "myCFsvc." inside "Response.Write()".

    Fig.7

    Fig.8 shows the completed code. Note that the reference to the proxy must be imported using the imports statement at the very top of the code a shown.

    Fig.8

    Browsing the Client

    The rest is history. Right click the WebClient.aspx file in the Solution Explorer and choose to view it in your default browser. Then you will see the following display when you type text into the text box and click the button. The button click event called the web service via the proxy after passing what is typed into the text box. The service used the argument sent, and after processing sent the result to the client, which the client rendered to the display as seen in Fig.9

    Fig.9

    Summary

    Interoperability is the goal and this tutorial touches upon a small fraction of this aspect. What has been shown in the last two tutorials are that web services created in ColdFusion (which are Java based) can be consumed by a Microsoft .NET Visual Studio created client, and that a Microsoft Visual Studio created Web Service (which is .NET based) can be consumed by a client application written in ColdFusion. Relatively speaking, the web services are interoperable between Java and .NET programming languages, as seen in these two tutorials in the Windows operating system.


    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.

       · Interoperability is an important issue for web services survival as an universal...
     

    VISUAL BASIC.NET ARTICLES

    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...





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