diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-05-05 12:59:16 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-05-05 12:59:16 +0000 |
| commit | b6011ab10734bec8c6b47131ef75a45e689681a4 (patch) | |
| tree | 7b56b89188fd2d486d7edaaa00ef2f967873f02f /python/xml | |
| parent | 84a15f9fdde1548e7eef0a33fd32887376ba54be (diff) | |
| download | lasso-b6011ab10734bec8c6b47131ef75a45e689681a4.tar.gz lasso-b6011ab10734bec8c6b47131ef75a45e689681a4.tar.xz lasso-b6011ab10734bec8c6b47131ef75a45e689681a4.zip | |
add enveloping in soap node
Diffstat (limited to 'python/xml')
| -rw-r--r-- | python/xml/py_xml.c | 16 | ||||
| -rw-r--r-- | python/xml/py_xml.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c index 405fee16..76384319 100644 --- a/python/xml/py_xml.c +++ b/python/xml/py_xml.c @@ -130,6 +130,22 @@ PyObject *node_url_encode(PyObject *self, PyObject *args) { return (charPtr_wrap(ret)); } +PyObject *node_soap_envelop(PyObject *self, PyObject *args) { + PyObject *node_obj; + gchar *ret; + + if (CheckArgs(args, "O:node_unref")) { + if(!PyArg_ParseTuple(args, (char *) "O:node_url_encode", + &node_obj)) + return NULL; + } + else return NULL; + + ret = lasso_node_soap_envelop(LassoNode_get(node_obj)); + + return (charPtr_wrap(ret)); +} + PyObject *node_verify_signature(PyObject *self, PyObject *args) { PyObject *node_obj; const gchar *certificate_file; diff --git a/python/xml/py_xml.h b/python/xml/py_xml.h index 41d7d5b6..52723113 100644 --- a/python/xml/py_xml.h +++ b/python/xml/py_xml.h @@ -41,6 +41,7 @@ PyObject *node_get_attr_value(PyObject *self, PyObject *args); PyObject *node_get_child(PyObject *self, PyObject *args); PyObject *node_unref(PyObject *self, PyObject *args); PyObject *node_url_encode(PyObject *self, PyObject *args); +PyObject *node_soap_envelop(PyObject *self, PyObject *args); PyObject *node_verify_signature(PyObject *self, PyObject *args); #endif /* __PYLASSO_PY_XML_H__ */ |
