NonStop SOAP User's Manual

Using NonStop SOAP with a TS/MP Application and
NonStop Processes
NonStop SOAP User’s Manual520501-012
6-7
Annotated Example SDL Files for TS/MP
namespace qualified, the SOAP message type is document, the server must validate
input against the DTD, and the output filename prefix is emp.
<Service ServiceName ="EmpInfo"
SoapCompliant="yes"
TMFTransactionSupport="no"
NameSpaceQualified="no"
SoapMessageType="document"
OutputFileNamePrefix = "emp" >
<SvcDescription>Employee Info </SvcDescription>
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.
<RequestInfo>
<DDLDefinitionName>EmpDetails00</DDLDefinitionName>
</RequestInfo>
The corresponding DDL definition, which is not part of the SDL file is:
definition EmpDetails00.
02 request-code pic 99.
02 employee-number pic 9999.
end
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>