Chapter 18

 < Day Day Up > 

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.

     < Day Day Up > 


    Core C# and  .NET
    Core C# and .NET
    ISBN: 131472275
    EAN: N/A
    Year: 2005
    Pages: 219

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net