40 likes | 126 Views
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
E N D
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