} 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");
int new_len;
xmlNodePtr node = xmlNewChild(param, NULL, SOAP_1_2_ENV_NS_PREFIX":Code", NULL);
char *str = php_escape_html_entities(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &new_len, 0, 0, NULL TSRMLS_CC);
+ node = xmlNewChild(node, NULL, SOAP_1_2_ENV_NS_PREFIX":Value", NULL);
xmlNodeSetContentLen(node, str, new_len);
efree(str);
}
int new_len;
xmlNodePtr node = xmlNewChild(param, NULL, SOAP_1_2_ENV_NS_PREFIX":Reason", NULL);
char *str = php_escape_html_entities(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &new_len, 0, 0, NULL TSRMLS_CC);
+ node = xmlNewChild(node, NULL, SOAP_1_2_ENV_NS_PREFIX":Text", NULL);
xmlNodeSetContentLen(node, str, new_len);
efree(str);
}