![]() |
Previous | Next |
This section shows you how to create the simplest of all possible e-services. This sample is not really a service at all, because it performs no useful function; it only displays the text "Hello World!" in the Producer Publish Wizard. It does, however, demonstrate the minimum work required to make your e-service visible in the Publish Wizard user interface so you can test and debug your code.
The following steps create the Hello World sample:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Producer\WebHosts\Hello World]
"HTMLBasedUIURL" = "http://yourserver/yourpath/HelloWorld.htm"
"ID" = "C1C8024B-3667-4245-BB8C-0556D61D6166"
The name of the e-service is the text between the last backslash and the closing square bracket on the line that begins with [HKEY CURRENT USER (in this case, Hello World). This is the name that appears in the Web server list in the Publish Wizard user interface, and also the name of the WebHost key in the registry.
The value provided for ID is a globally unique identifier (GUID). This must be unique for each WebHost, but feel free to use the one provided for this example. Normally, you will generate a new GUID for each WebHost you create in this manner. (The GUID is generated automatically when you register a WebHost using the Producer Object Model.)
<HTML>
<HEAD></HEAD>
<BODY>
Hello World!
</BODY>
</HTML>
To display the Hello World page:
The message displays in the hosted browser window client area.
For the finished samples that accompany this topic, see The Hello World Sample.
Previous | Next |