Visual C++ Concepts: Adding Functionality
Publishing and Deploying XML Web Services

Deploying an XML Web service created using ATL Server is similar to deploying any other ATL Server application. For deployment during the development process, you can use the Web Deployment Property Page to have your files copied and DLLs automatically registered with Internet Information Services (IIS) on the local machine when your project is built. For general deployment, you should follow the advice in >Redistributing a Native C++ Application and Deploying ATL Server Applications.

Once an XML Web service has been deployed and occasionally before it has been deployed, client applications need to become aware of its existence and the capabilities it offers. This is usually accomplished by providing them with the WSDL description of the XML Web service.

You can expose the WSDL description of your XML Web service in a number of ways:

  • Provide the client with a URL from which to obtain the WSDL description directly.

    For an XML Web service created with ATL Server, the WSDL description can be obtained by accessing the WSDL request handler associated with the XML Web service. The name of this request handler is set using the sdl parameter of the request_handler attribute.

    For example, the description of a typical XML Web service created with ATL Server and deployed locally can be found using a URL of the following form:

    http://localhost/Project/Project.dll?Handler=GenServiceWSDL
  • Provide the client with a URL of a discovery document specific to that XML Web service.

    The ATL Server wizards generate a discovery document for each XML Web service that you add to the project. You may need to change the contents of these files to match the location of the XML Web service WSDL description. For details, see XML Web Service Discovery and Enabling Discovery for an XML Web Service.

  • Provide the client with a URL of a discovery document for a collection of related XML Web services, such as all the XML Web services provided by your Web site.
  • Register your XML Web service in a UDDI registry.
  • Send the client the description of the XML Web service by e-mail or some other mechanism of your choice.

See Also

XML Web Services Created with ATL Server | Providing XML Web Services | Consuming XML Web Services

Page view tracker