Inside the WSDL & Web Services Proxies
page 10 of 16
by Anonymous Contributor
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 64915/ 145

Dissecting the Proxy

In this part of the article let’s dissect the proxy to understand it better. We can use the “WSDL.EXE” utility to generate a proxy, but for this one time let us hand-code the proxy to have a better understanding! 

Let us keep the UI for this Web Application simple: a Web Form, which accepts “Flight Number” and “Day offset” and a text box to display the returned XML in the form of a string. The UI looks like the figure shown below:

Fig 11: Web Form for SAS Web Service proxy 

The “code behind” page for this web form is “WebForm1.aspx.cs”. Now, let us decide if we really want a separate “proxy” dll that contains code to invoke the Web Service, or if it is okay to add that functionality in the “code behind” file itself! Assuming that we are not re-using the code to invoke the SAS Flight Status Web Service anywhere else and also since we are hand-coding the proxy, let us incorporate the proxy code in the “code behind” file, which is “WebForm1.aspx.cs”.


View Entire Article

User Comments

Title: Webservice   
Name: Anbazhagan. P
Date: 2009-03-14 12:47:38 PM
Comment:
Very useful website
Title: rakesh   
Name: Name rakesh
Date: 2007-09-13 3:38:58 AM
Comment:
Ok Run
Title: Getting Error   
Name: Dilip Kumar Prusty
Date: 2006-09-18 5:19:48 AM
Comment:
I am getting
The request failed with HTTP status 404: Not Found.
this error .

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-18 7:24:26 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search