Overview of Microsoft Web Services: Code and Exchange Description
40 likes | 136 Vues
A comprehensive overview of Microsoft Web Services, including code examples, class definitions, message exchange, web references, and SOAP requests and responses. Learn how applications communicate and exchange data with web services.
Overview of Microsoft Web Services: Code and Exchange Description
E N D
Presentation Transcript
Microsoft Web Services “At-A-Glance” Contains code for the entire class Contains a definition for the entire class Contains a message for a single exchange
The .asmx file • Specified as the “web reference” for a web service • Allows the application to find and exchange data with the web service <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="TempConvert" %>
A Web Service Exchange Web reference SOAP request (method call) Client application (uses the web service) Web service (running on a server) Both are formatted using XML (text/tags) SOAP response (return value)
An Example (TempConvert) http://class1.sbm.temple.edu/3502/TemperatureConversion/TempConvert.asmx edu.temple.sbm.class1.TempConvert SOAP request (ToCelsius(212)) Temp Consume.cs Temp Convert.cs Both are formatted using XML (text/tags) SOAP response (100) Local computer (localhost) class1.sbm.temple.edu