Net specific get detailed description of web service

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: st harness ASP.NET automatically generates WSDL Can use .NET Framework classes and custom assemblies and classes Developing a Web Service Code and Syntax Codebehind <%@ WebService Language="c#" Codebehind="MyWebService.cs" Class="FirstWebService.MathService" %> Inline (in C#) <%@ WebService Language=“C#“ Class=“MathService“ %> using System.Web.Services; public class MathService : WebServices { [WebMethod] public int Add(int num1, int num2) { return num1 + num2; } } 28 Developing a Web Service Examples Example: MathService.asmx Developing a Web Service Tools Notepad Just create a .asmx file Visual Studio Create ASP.NET Web Service 29 Creating a Web Service Project Resulting “Generic” Web Service 30 Resulting “Generic” Test DemoWebService Running Web service description Public web method 31 Client of DemoWebService Instantiating web service proxy Adding web reference creates proxy SOAP Request and Response 32 HTTP GET and POST exchanges demo1.wsdl 33 Outline Web Services Overview Underlying Technologies Developing a Web Service Consuming Web Services Miscellaneous Consu...
View Full Document

This note was uploaded on 04/04/2014 for the course CS 5950 taught by Professor Staff during the Summer '08 term at Western Michigan.

Ask a homework question - tutors are online