Package gavo :: Package web :: Module wsdl
[frames] | no frames]

Module wsdl

source code

Code to expose our services via SOAP and WSDL.

Classes
  WSDL
is a container for elements from the wsdl 1.1 schema.
  SOAP
  XSD
is a container for elements from XML schema.
  ToTcConverter
is a quick and partial converter from SQL types to ZSI's type codes.
Functions
 
makeTypesForService(service, queryMeta)
returns stanxml definitions for the (SOAP) type of service.
source code
 
makeMessagesForService(service)
returns stanxml definitions for the SOAP messages exchanged when using the service.
source code
 
makePortTypeForService(service)
returns stanxml for a port type named serviceSOAP.
source code
 
makeSOAPBindingForService(service)
returns stanxml for a SOAP binding of service.
source code
 
makeSOAPServiceForService(service)
returns stanxml for a WSDL service definition of the SOAP interface to service.
source code
 
makeSOAPWSDLForService(service, queryMeta)
returns an stanxml definitions element describing service.
source code
 
sqltypeToTC(sqlType) source code
 
datetimeMapperFactory(colProps)
returns mapper for datetime objects to python time tuples.
source code
 
serializePrimaryTable(data, service)
returns a SOAP serialization of the DataSet data's primary table.
source code
 
unicodeXML(obj)
returns an XML-clean version of obj's unicode representation.
source code
 
formatFault(exc, service) source code
Variables
  SOAPNamespace = 'http://schemas.xmlsoap.org/wsdl/soap/'
  HTTPNamespace = 'http://schemas.xmlsoap.org/wsdl/http/'
  MIMENamespace = 'http://schemas.xmlsoap.org/wsdl/mime/'
  WSDLNamespace = 'http://schemas.xmlsoap.org/wsdl/'
  XSDNamespace = 'http://www.w3.org/2001/XMLSchema'
  __package__ = 'gavo.web'
Function Details

makeTypesForService(service, queryMeta)

source code 

returns stanxml definitions for the (SOAP) type of service.

Only "atomic" input parameters are supported so far, so we can skip those. The output type is always called outList and contains of outRec elements.

makeMessagesForService(service)

source code 

returns stanxml definitions for the SOAP messages exchanged when using the service.

Basically, the input message (called srvInput) consists of some combination of the service's input fields, the output message (called srvOutput) is just an outArr.

makeSOAPWSDLForService(service, queryMeta)

source code 

returns an stanxml definitions element describing service.

The definitions element also introduces a namespace named after the ivoa id of the service, accessible through the tns prefix.

unicodeXML(obj)

source code 

returns an XML-clean version of obj's unicode representation.

I'd expect ZSI to worry about this, but clearly they don't.