SOUP Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#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.
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.
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.
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.
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.
void wsdl_schema_end_element (const xmlNodePtr node); |
Calls the schema parser configured by wsdl_schema_init() to close an element.