swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax     Other Library Functions  
function  

wsb.has-known-request-type

 
 

Library: Net, Web Services Broker (OMWSB)
Import: omwsb.xmd
Return type: Boolean
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.has-known-request-type
   wsb.reader
   wsb.remove-service
   wsb.request
   wsb.request-header
   wsb.request-name
   wsb.request-type
   wsb.server
   wsb.service-exists
   wsb.start-servicing-requests
   wsb.wait-for-request
   wsb.writer
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:46:07 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.