The Web Services feature provides a simple file generation tool which constructs the necessary web service deployment files using information retrieved from a Smalltalk class. This tool is called SstWSXmlGeneration. To use the tool, determine which methods are to be exposed as operations in the service interface, and add those methods to the method category '@WS-API'. Launch the tool using an expression like the one below to create generalized deployment files for the service.For instance, to generate deployment files for the insurance policy example, found in SstWebServicesInsuranceExample in the Web Services feature, evaluate the expressionThese files will be placed in the directory specified by the key DefaultResourceQualifier located in the XML stanza of the abt.ini file. Here is a sample entry:It is important to remember that these files will be OVERWRITTEN if they exist! An error will occur if the DefaultResourceQualifier points to a read only directory.The default location of the DefaultResourceQualifier is a readonly directory. In order to run the Web Services examples, you can
1.
2. Or copy the directory indicated by the DefaultResourceQualifier and its sister directory, samples\sstws into a direcory to which you have write priviledges, Once you have done this change the DefaultResourceQualifier to point to the xml directory. In this case, you can generate the deployment descriptors directly into the new DefaultResourceQualifier.For the insurance policy example, the deployment description found in SstWSInsurancePolicyInterface.xml defines the services in the insurance policy web service and refers to SstWSInsurancePolicyInterface.wsdl as the source of information about the interface including the location of the service. The WSDL interface document SstWSInsurancePolicyInterface.wsdl in turn refers to the WSDL implementation document, SstWSInsurancePolicyInterface-interface.wsdl, for information on how the services are implemented including mapping operations to SOAP messages.
![]() |