Previous Section  < Day Day Up >  Next Section

Chapter 18

A1:


System.Web.Services.WebService


A2:

WebService attribute is applied to a class providing a Web Service. It describes the Web Service. WebService directive identifies a file as containing a Web Service.

A3:

Use the Web Service attribute to specify a namespace to uniquely identify a service.

A4:

The Invoke method is used for a synchronous call; BeginInvoke is used for asynchronous.

A5:

Use the Timeout property on the Web Service object to set the timeout in milliseconds.

A6:

The <Service> element contains the target URL for a Web Service.

A7:

A Web method requires the SoapHeader attribute to access the SOAP header info.

A8:

BeginInvoke with polling using the IsCompleted property to check for a response. BeginInvoke with EndInvoke to retrieve results. Call <web service name>Async and implement event handler to process response.

    Previous Section  < Day Day Up >  Next Section