swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax     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 Syntax
   wsb.wait-for-request
 
  Other Library Functions
   wsb.add-service
   wsb.clear-all-services
   wsb.create-server
   wsb.dispatch-request
   wsb.forward-request
   wsb.has-known-request-type
   wsb.reader
   wsb.read-service-arguments
   wsb.remove-service
   wsb.request
   wsb.request-header
   wsb.request-name
   wsb.request-type
   wsb.server
   wsb.service-exists
   wsb.set-request-header
   wsb.start-servicing-requests
   wsb.wait-for-request
   wsb.writer
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.