Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 4 - Consuming a Service Created with Web Matri...
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
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? 
VISUAL BASIC.NET

Consuming a Service Created with Web Matrix
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2006-03-28

    Table of Contents:
  • Consuming a Service Created with Web Matrix
  • Creating a client to the web service file
  • Using the reference to the mini-web server
  • Creating a web client in Web Matrix
  • Creating the client page and testing

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Consuming a Service Created with Web Matrix - Creating a web client in Web Matrix


    (Page 4 of 5 )

    Create a Web Service

    Create a web service, three.asmx, as in Fig.12, which adds 3 numbers and returns the sum.  Make sure you take note of the Namespace and Class that you provide here.

    Fig.12
    Fig.12

    The code for this web service is as shown here in Fig.13:

    Fig.13
    Fig.13

    You may test this service by running the program which produces the following, as in Fig.14:

    Fig.14
    Fig.14

    In order to consume this service, you need to create a proxy. Web Matrix has a tool, which can be accessed from the Tools ->Web Services Proxy Generator. When you click on this you will be generating the dynamic link libraries to be associated with the client code.  Fill in the appropriate information as shown here in Fig.15:

    Fig.15
    Fig.15

    Click on the Generate button to generate the files. Make sure the output directory is the same as that in which the asmx file resides. The MyProxyClass.dll will be placed in the bin sub folder. With this preparation you are now in a position to create the client

    More Visual Basic.NET Articles
    More By Jayaram Krishnaswamy


       · The tutorial shows how easy it is to create a consumer created with web matrix to...
     

    VISUAL BASIC.NET ARTICLES

    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...
    - Programmatically Controlling Windows Fax Ser...
    - Focusing on Forms and Menus in Visual Basic





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway