NonStop SOAP User's Manual
The Service Description Language (SDL)
NonStop SOAP User’s Manual—520501-012
3-12
Handling Different Response Selections in the SDL
Handling Different Response Selections in the 
SDL
NonStop SOAP supports marshaling different response messages based on selection 
criteria specified in the ResponseSelection elements of the SDL. A response can be 
marked as default and will be used when no selection criteria is specified or if none of 
the conditions specified in the selection criteria are true. 
In cases where a default response is not specified and none of the conditions in the 
selection criteria are true at run time, the SOAP server encounters an exception and 
returns a SOAP fault with this message in the "detailString" element of the fault:
"Application error - internal processing error"
To avoid the above exception, specify a default response as part of the response 
selection criteria as shown in this sample SDL fragment.
<sdl>
...…
<Service>
...
 <ResponseInfo>
 <DDLDefinitionName>GOOD-RESPONSE</DDLDefinitionName>
 <ResponseSelection Start="0" End="2" BufVal="1" />
 </ResponseInfo>
 <ResponseInfo>
 <DDLDefinitionName>BAD-RESPONSE</DDLDefinitionName>
 <ResponseSelection Start="0" End="2" BufVal="0" />
 </ResponseInfo>
 <ResponseInfo>
 <DDLDefinitionName>DEFAULT-RESPONSE</DDLDefinitionName>
 <ResponseSelection defaultResp="yes"/>
 </ResponseInfo>
...
</Service>
...
</sdl>










