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.


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.


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.


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.


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.


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.