Net session state mechanism what is a session

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: vices Trying It Out Request with parameter “WSDL” Formal WSDL description of Web Service XML-based grammar Can be used as input for wsdl.exe http://localhost/MathService.asmx?WSDL Consuming Web Services Creating a Proxy Use wsdl.exe to generate a proxy wsdl http://localhost/MathService.asmx?WSDL Creates MathService.cs Contains MathService class, derived from SoapHttpClientProtocol in the System.Web.Services.Protocols namespace Or HttpGetClientProtocol or HttpPostClientProtocol You can instantiate these classes dynamically Proxy embeds URL to the Web Service in the constructor 39 Consuming Web Services Using Visual Studio Use Add Web Reference to search UDDI or to discover Web Services given a URL This builds a proxy, and you can start using the Web Service immediately Visual Studio essentially calls disco.exe and wsdl.exe for you You have to locate the folder and asmx file, using explorer, then type in path here. Adding a Web Reference 40 Create Proxy Source Code with WDSL.exe Consuming Web Services Example Example: TestServices.sln Consumes: MathService.asmx Consumes: Global Weather Service 41 Outline Web Services Overview Underlying Technologies Developing a Web Service Consuming Web Services Miscellaneous Miscellaneous State Management Web Services are stateless Use ASP.NET session state mechanism What is a session? Restricted to a logical application Context in which a user communicates to a server Functionality Req...
View Full Document

Ask a homework question - tutors are online