NonStop SOAP 4.1 User's Manual

33 * Write the code implement business logic. The response buffer
34 * needs to be written into variable response_buffer and response
35 * size needs to be written into variable reply_count.
36 * The memory needed for the response structure also needs to be
37 * allocated.
38 */
39 }
40
Following is a list of functions based on the code sample:
FunctionLine Number(s)
The fileError variable is used to check the returned error and must be
initialized to 0.
Line 18
Request structure variable definition.Line 23
Response structure variable definition.Line 28
Write the code to implement your business logic. The response buffer must be
written in the response_buffer variable and the response size must be
written in the reply_count variable.
Line 31- Line 38
After customizing the service skeleton files generated by the WSDL2PWY tool, build the service
object by running the Makefile_service file generated by the WSDL2PWY tool. To run the
Makefile_service file, enter the following command:
OSS> make f Makefile_service
On successful execution of the previous command, an object named <service_name>.pway
is created in the same location as the Makefile (Makefile_service). For example, the
reflector service will have an object name reflectorService.pway.
After generating the service object, you must configure it as a Pathway server class.
To configure the service object as a Pathway server class, complete the following steps:
1. Create the <service_name>/src directory in <NonStop SOAP 4 Deployment
Directory>/services/<service_name>.
2. Copy the conf directory from /usr/tandem/nssoap/t0865h01/sample_services/
reflector/ to <NonStop SOAP 4 Deployment
Directory>/services/<service_name>.
For example, in case of the reflector service, copy the conf directory to the <NonStop
SOAP 4 Deployment Directory>/services/reflector directory.
3. Copy the <service_name>.pway object from its existing location to <NonStop SOAP
4 Deployment Directory>/services/<service_name>/src.
For example, in case of the reflector service, copy reflectorService.pway to
the <NonStop SOAP 4 Deployment Directory>/services/reflector/src
directory.
4. Rename the <service_name>.pway object to service name.
For example, in case of the reflector service, rename reflectorService.pway
to reflector.
5. Run the pathConf script:
OSS> ./pathConf <Pathmon name>
For example, to configure the reflector service under the PATHMON named $ECHO,
use the following command:
OSS> ./pathConf \$ECHO
The service object is now configured as a Pathway server class.
268 Using the Contract-First Approach in NonStop SOAP 4