diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-01-26 17:11:05 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-01-26 17:11:05 +0000 |
commit | 1e5ebeb95d332bdf1f484f2773fe1f476095a8ef (patch) | |
tree | b6305cf136c3ef59f629cb8042707b784258fb07 /ext/soap/php_packet_soap.c | |
parent | fd773c92cb4bbf7fdd4905379611d5d61666f7ec (diff) | |
download | php-git-1e5ebeb95d332bdf1f484f2773fe1f476095a8ef.tar.gz |
Support for SOAP 1.2 Fault/Code/Value and Fault/Reason/Text
Diffstat (limited to 'ext/soap/php_packet_soap.c')
-rw-r--r-- | ext/soap/php_packet_soap.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/soap/php_packet_soap.c b/ext/soap/php_packet_soap.c index 9bc874efeb..e379f447f3 100644 --- a/ext/soap/php_packet_soap.c +++ b/ext/soap/php_packet_soap.c @@ -118,12 +118,19 @@ int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunction } else { tmp = get_node(fault->children,"Code"); if (tmp != NULL && tmp->children != NULL) { - faultcode = tmp->children->content; + tmp = get_node(tmp->children,"Value"); + if (tmp != NULL && tmp->children != NULL) { + faultcode = tmp->children->content; + } } tmp = get_node(fault->children,"Reason"); if (tmp != NULL && tmp->children != NULL) { - faultstring = tmp->children->content; + /* TODO: lang attribute */ + tmp = get_node(tmp->children,"Text"); + if (tmp != NULL && tmp->children != NULL) { + faultstring = tmp->children->content; + } } tmp = get_node(fault->children,"Detail"); |