Creating the MathWebService
The first task is to build an XML web service that can be utilized by a workflow-enabled application.
To do so, create a brand-new XML web service project by accessing the File ➤ New Web Site menu
option. Select the ASP.NET Web Service icon and be sure to select the HTTP location option in order
to create this web service within a new IIS virtual directory mapped to http://localhost/
MathWebService (see Figure 26-11).
Figure 26-11.
Adding an XML web service project to the WF application
This XML web service will allow external callers to perform basic mathematical operations on
two integers using the following [WebMethod]-adorned public members:
[WebService(Namespace = "http://intertech.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class MathService : System.Web.Services.WebService
{
[WebMethod]
C H A P T E R 2 6
Do'stlaringiz bilan baham: |