Hour 12

   

1:

How does an ATL Web Service expose its methods?

A1:

It declares an interface that is then implemented by a class.

2:

What type of method do you create in the ATL class to support the Web Service calls?

A2:

You declare a method with the [soap_method] attribute to indicate that the method uses SOAP for communication.

3:

What is the return type for all exposed ATL Web Service methods?

A3:

HRESULT

4:

How do you specify the return value that is returned to the Web Service user?

A4:

By declaring the last parameter with the [out, retval] attribute.

5:

What limitation does the return value type have for an ATL Web Service method?

A5:

Each return value must be declared as a pointer to a type. You cannot directly return a value.


   
Top


Sams Teach Yourself Visual C++. NET in 24 Hours
Sams Teach Yourself Visual C++.NET in 24 Hours
ISBN: 0672323230
EAN: 2147483647
Year: 2002
Pages: 237

Similar book on Amazon

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