NonStop SOAP 4.1 User's Manual

client is the directory in <NonStop SOAP 4 Deployment Directory> where the
HTML clients for the services are located.
To verify the deployed service, complete the following steps:
1. Access the SoapPW_REFLECTOR.html using the following Web address:
http://<ip address>:<port>/<url_pattern>/client/reflector/SoapPW_REFLECTOR.html
2. Enter the string Welcome in the text box in the SoapPW_REFLECTOR.html file and click
Submit.
The string you entered as the SOAP response, in XML format, appears. For example, the
following is a sample SOAP Response XML file:
<soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope>
<soapenv:Header/>
<soapenv:Body>
<tns1:REFLECTORResponse0 xmlns:tns1=urn:cpq_tns_REFLECTOR
xmlns=urn:cpq_tns_REFLECTOR xmnls:xsd=https://www.w3.org/2001/XMLSchema>
<outstr>Welcome</outstr>
</tns1:REFLECTORResponse0>
</soapenv:Body>
<soapenv:Envelope>
Deploying a NonStop process as a Web Service
Deploying NonStop process as a Web service involves the following steps:
1. Compile the reflector application. Please refer “Compiling reflector.c (page 81) for compilation
steps.
2. “Creating DDL dictionary files (page 78)
3. Creating SDL files
The procedure to deploy a service running as a NonStop process in NonStop SOAP 4 is
similar to the procedure used to deploy a Pathway application. However, the SDL needs to
specify the attributes of the NonStop process being deployed under NonStop SOAP. In the
SDL, this is accomplished using the Process element rather than the Pathway element.
Create an SDL file reflectorsdl_process.xml file which contains the following:
<sdl Url="/axis2c" ServerAddress ="http://www.nonstopsoap.com">
<Process>
<ProcessEnvironment Name="$<PROCESS>>
<ProcessDetails Name="Reflector"
DDLDictionaryLocation="$<Volume>.<SubVolume>
SrvrEncoding="UTF-8"
language="C"
stringTermination="NullTerminated">
<Operation Name="REFLECTOR"
TMFTransactionSupport="Never"
AbortTransactionOnFault="yes"
NameSpaceQualified="yes"
SoapMessageType="document"
ProcessSoapDDLComments="no"
SoapDDLAttribute="no"
UseDDLDefaultValue="no">
<OperationDescription>Reflector</OperationDescription>
<RequestInfo>
<DDLDefinitionName>INPUT</DDLDefinitionName>
</RequestInfo>
<ResponseInfo>
<DDLDefinitionName>OUTPUT</DDLDefinitionName>
<ResponseSelection defaultResp="yes"/>
</ResponseInfo>
</Operation>
</ProcessDetails>
</ProcessEnvironment>
Deploying a NonStop process as a Web Service 83