Qore WSDL Module Reference  0.3.6
WSDL::Namespaces Class Reference

namespace container class More...

Public Member Functions

 constructor (hash< auto > nsh, *Namespaces nsc)
 creates the object with the WSDL definitions attribute hash
 
 merge (Namespaces nsc)
 merges namespaces when parsing imported schemas
 
string getOutputNamespaceUri (string nsp)
 returns the namespace URI for the given output namespace prefix
 
*hash< auto > getOutputNamespaceHash (*hash< auto > nsh)
 returns a hash of namespace attributes for outgoing SOAP messages
 
*string getTargetNamespaceUri ()
 returns the primary target namespace Uri
 
*string getNamespaceUri (*string nsp)
 returns the namespace URI for the given prefix or the target namespace Uri
 
 pushTargetNamespace (string ns)
 pushes the current target namespace URI on the stack when parsing schemas and sets the current target namespace URI to the current value
 
 popTargetNamespace ()
 restores any previous target namespace URI from the stack to the current target namespace URI
 
 pushDefaultNamespace (string ns)
 pushes the current default namespace URI on the stack when parsing schemas and sets the current default namespace URI to the current value
 
 popDefaultNamespace ()
 restores any previous default namespace URI from the stack to the current default namespace URI
 
string getOutputNamespacePrefix (string ns)
 looks up and registers a namespace if necessary, returns the namespace's prefix
 
string getTargetNamespaceInputPrefix ()
 looks up and registers a namespace if necessary, returns the namespace's prefix
 
*hash< auto > getReferencedNamespaceMap ()
 returns a hash of namespace prefixes to namespaces URIs actually used
 
bool hasSoap11 ()
 returns True if using SOAP 1.1, False if not
 
bool hasSoap12 ()
 returns True if using SOAP 1.2, False if not
 
*bool isSchema (string ns)
 returns True if if the input namespace prefix refers to the XSD namespace URI
 
string getInputNamespaceUri (string nsa)
 returns the input namespace URI from the input namespace prefix
 
string translateOutputNamespacePrefix (*string nsa)
 returns the output namespace prefix for the given input namespace prefix
 

Private Member Functions

string registerNamespaceIntern (string n_ns)
 registers a namespace internally
 

Private Attributes

hash< string, string > ns
 maps output namespace prefixes to namespace URIs
 
hash< string, string > nsr
 maps namespace URIs to output namespace prefixes
 
hash< string, bool > xsd_schema
 hash for valid XSD namespaces, maps input namespace prefixes -> True if it refers to an XSD schema
 
hash< string, string > imap
 hash mapping input namespace prefixes to namespaces URIs
 
hash< string, string > imapr
 hash mapping input namespace URIs to input namespace prefixes
 
int nsn
 integer providing a sequence for output namespace prefixes
 
bool hassoap11 = False
 if True then has SOAP 1.1
 
bool hassoap12 = False
 if True then has SOAP 1.2
 
*string target_ns
 current target namespace
 
list< auto > nss = ()
 target namespace stack;
 
*string default_ns
 default namespace for unprefixed definitions
 
list< auto > dss = ()
 default namespace stack;
 
hash< string, XsdBaseTypebase_types
 base type map
 

Detailed Description

namespace container class