You can access a Millennium SDK Web Service and check its availability by entering its URL in a web browser. The following example shows the steps for accessing the ClientNameList Web Service.
Open a web browser and access the Millennium SDK's URL:
http://<ServerName>/MillenniumSDK/MillenniumSDK.asmx
A list of web services displays.
Looking through the list of services, you will see "ClientNameList".
Now, access the following URL:
http://<ServerName>/MillenniumSDK/MillenniumSDK.asmx?op=ClientNameList
If the service is running, you will see a message that you have accessed a web service but you will need more information before you can use the web service.
Change the URL to:
http://<ServerName>/MillenniumSDK/MillenniumSDK.asmx?wsdl
The WSDL that displays has all of the information necessary to access and use the web service. You can save the file or access it when you need it directly from the web service.
Using the WSDL as input, a developer can develop applications that access RPC-based web services. Several different development environments allow this generation of clients. IBM, Sun, and Borland use Java to access web services; Microsoft uses .Net. In both of these languages, the generated code handles the connection to the web service - allowing the programmer to concentrate on providing the data for the request and interpreting the responses returned.
If you use the Millennium SDK SOAP Client, then you do not need to generate any client code since the client is responsible for accessing the Millennium SDK Web Service.
You can find more information on web services at the following web sites:
You can configure the data that the Millennium SDK accesses by editing settings in the web.config file. The web.config file resides in the folder where you installed the Millennium SDK.
To change these settings navigate to the Millennium SDK folder and open the web.config file. Next, locate and modify the following settings as necessary.
| 
 <appSettings> <add key="MillenniumDir" value="c:\Program Files\Harms\Millennium\" /> <add key="SessionTimeOut" value="20" /> </appSettings>  | 
The MillenniumDIR key indicates the Millennium directory that the SDK accesses. The SessionTimeOut key indicates how long each session will remain active during periods of inactivity.
The following examples show how you can utilize the Millennium SDK SOAP client to connect to the Millennium SDK Web Service, search for a client, and retrieve client formulas.
Important: The LogOn method also returns a SOAP Header that contains the Session Id you need to use for all subsequent calls to the Millennium SDK Web service. This session will expire after the specified time of inactivity. Each request to the Millennium SDK must send the Millennium GUID information along with the request. If this data is missing or incorrect, the Millennium SDK will not process the request. The SOAP Header includes the Millennium GUID information so you only need to set up the SOAP Header once, since each subsequent call will use the existing SOAP Header and send this Information to the Central Office SDK.
If you are using the Central Office SDK SOAP client, you can use the Init() method to set up the SOAP Header.