NonStop SOAP User's Manual

Using NonStop SOAP with a TS/MP Application and
NonStop Processes
NonStop SOAP User’s Manual520501-012
6-11
Annotated Example SDL Files for TS/MP
These lines specify the server class EmpSvr. The attributes indicate that the server is
written in C or C++ and that the strings are null terminated. The DDLDictionaryLocation
attribute specifies the location of the DDL dictionary that defines the request and
response message formats:
<ServerClass Name="EmpSvr"
language="C"
stringTermination="NullTerminated"
DDLDictionaryLocation="$DATA00.DDLSV">
These lines specify a service called EmpInfo. The attributes specify that the input is
SOAP compliant, that requests require the client to initiate transactions, that the XML
parser must validate the input SOAP message, that the service is context free, and that
DDL definitions will be cached by the SOAP server on startup. The ServiceName
attribute specifies that the immediate child node of the Body element of the SOAP
message has the tag name EmpInfo.
<Service ServiceName ="EmpInfo"
SoapCompliant="yes"
TMFTransactionSupport="yes"
DTDorSchema="DTD"
Cache="yes"
Type="ContextFree">
These lines specify that the name of the DDL definition describing the request is
EmpDetails00. This definition must be present in the DDL Dictionary specified by the
attribute DDLDictionaryLocationof the element ServerClass.
<SvcDescription>Employee Info </SvcDescription>
<RequestInfo>
<DDLDefinitionName>EmpDetails00</DDLDefinitionName>
</RequestInfo>
These lines specify a response type EmployeeReply, to be used when the response
buffer has the value “02” in its first two bytes. In this example, the attribute
ComparisonOp is not specified and therefore has the default value of “eq”, meaning
equal.
<ResponseInfo>
<DDLDefinitionName>EmployeeReply</DDLDefinitionName>
<ResponseSelection Start="0" End="2" BufVal="02"/>
</ResponseInfo>