![]() | ![]() | ![]() | SOUP Reference Manual | ![]() |
---|
#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);
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 : |
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 : |
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. |
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 : |
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 |
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 |
<<< wsdl-schema-glib | wsdl-soap-marshal >>> |