wsdl-schema

Name

wsdl-schema -- 

Synopsis



#define     WSDLNS
#define     SOAPNS
#define     XSDNS
#define     GLIBNS
gboolean    wsdl_qnamecmp                   (const xmlNodePtr node,
                                             const xmlChar *ns,
                                             const xmlChar *localname);
gboolean    wsdl_attrnscmp                  (const xmlNodePtr node,
                                             const guchar *attr,
                                             const guchar *ns_href);
const guchar* wsdl_prefix_to_namespace      (const xmlDocPtr doc,
                                             const xmlNodePtr node,
                                             const guchar *str,
                                             gboolean defns);
gboolean    wsdl_schema_init                (const xmlNodePtr node,
                                             const xmlChar **attrs,
                                             WsdlErrorMsgFn error_msg);
void        wsdl_schema_start_element       (const xmlDocPtr doc,
                                             const xmlNodePtr node,
                                             const xmlChar **attrs,
                                             const guchar *ns,
                                             const guchar *nsuri);
void        wsdl_schema_end_element         (const xmlNodePtr node);

Description

Details

WSDLNS

#define WSDLNS "http://schemas.xmlsoap.org/wsdl/"

The WSDL namespace URI.


SOAPNS

#define SOAPNS "http://schemas.xmlsoap.org/wsdl/soap/"

The SOAP namespace URI.


XSDNS

#define XSDNS  "http://www.w3.org/1999/XMLSchema"

The XML Schema Description namespace URI.


GLIBNS

#define GLIBNS "http://ximian.com/soup/glib/1.0/"

The Ximian simple glib schema namespace URI.


wsdl_qnamecmp ()

gboolean    wsdl_qnamecmp                   (const xmlNodePtr node,
                                             const xmlChar *ns,
                                             const xmlChar *localname);

Checks that the node name is localname and belongs to the namespace ns.

node : a node in an XML parse tree
ns : a string containing a namespace URI
localname : a string without a namespace prefix
Returns : TRUE for "match", FALSE otherwise.


wsdl_attrnscmp ()

gboolean    wsdl_attrnscmp                  (const xmlNodePtr node,
                                             const guchar *attr,
                                             const guchar *ns_href);

Checks that the namespace prefix of attr matches the defined namespace ns_href, based on the XML namespaces in scope for node. If there is no prefix in attr then a ns_href of "" matches.

node : a node in an XML parse tree
attr : a string with an optional prefix deliminated by a ':'
ns_href : a string containing a namespace URI
Returns : TRUE for "match", FALSE otherwise.


wsdl_prefix_to_namespace ()

const guchar* wsdl_prefix_to_namespace      (const xmlDocPtr doc,
                                             const xmlNodePtr node,
                                             const guchar *str,
                                             gboolean defns);

Finds the namespace prefix of str in scope for node. If defns is TRUE and the prefix is not specified, it uses the default namespace.

doc : an XML document
node : a node in the XML parse tree
str : a string with an optional prefix deliminated by a ':'
defns : whether the default namespace can match a missing prefix
Returns : a namespace URI corresponding to the prefix in str.


wsdl_schema_init ()

gboolean    wsdl_schema_init                (const xmlNodePtr node,
                                             const xmlChar **attrs,
                                             WsdlErrorMsgFn error_msg);

Sets up the functions called by wsdl_schema_start_element() and wsdl_schema_end_element() by comparing the node name and namespace to a list of known schemas. Schema options are set from attrs, which vary depending on the schema.

node : a node in an XML parse tree
attrs : an array of XML UTF-8 strings containing the XML node attributes
error_msg : a pointer to a function to be called with any error messages to be displayed
Returns : TRUE if the namespace of node is known, FALSE otherwise.


wsdl_schema_start_element ()

void        wsdl_schema_start_element       (const xmlDocPtr doc,
                                             const xmlNodePtr node,
                                             const xmlChar **attrs,
                                             const guchar *ns,
                                             const guchar *nsuri);

Calls the schema parser configured by wsdl_schema_init() with a new element node. ns and nsuri are used to define the namespace of any typecodes created.

doc : an XML document
node : a node in the XML parse tree
attrs : an array of XML UTF-8 strings containing the XML node attributes
ns : a string containing a namespace reference
nsuri : a string containing a namespace URI


wsdl_schema_end_element ()

void        wsdl_schema_end_element         (const xmlNodePtr node);

Calls the schema parser configured by wsdl_schema_init() to close an element.

node : a node in an XML parse tree