swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Topics   Other Library Functions  
function  

wsb.has-known-request-type

 
 

Library: Web Services Broker (OMWSB)
Import: omwsb.xmd
Return type: Switch

Returns: true if the type of the incoming request has been identified, false otherwise


Declaration

export external switch function has-known-request-type 
                            value request request

Argument definitions

request
The wsb.request OMX that is returned by a call to wsb.wait-for-request.


Purpose

The wsb.has-known-request-type function is used in either the server or a service program to determine whether the request type is known. In a SOAP server, the criteria is that the request contains the SOAPAction HTTP header field. This function can be used to determine whether the wsb.request-name and wsb.request-type functions will succeed or if they'll throw exceptions.

In an XMLRPC server, the criteria is that the content type is text/xml, and that the "User-Agent:" and "Host:" headers are specified.

In a server with a user-defined protocol, the criteria is that the request has a HTTP header matching a type specified for a service via the wsb.add-service function.

    Related Topics
 
Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.