summaryrefslogtreecommitdiff
path: root/ext/soap/soap.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-01-13 07:59:13 +0000
committerDmitry Stogov <dmitry@php.net>2004-01-13 07:59:13 +0000
commit51c86ab73f7d61f547593afbd6edd5f3f022f9ba (patch)
treed977c6442be93d87ef95ff0eb4d84459890a7667 /ext/soap/soap.c
parent964d9c586d4713b86862817efb5fc81aef3f1325 (diff)
downloadphp-git-51c86ab73f7d61f547593afbd6edd5f3f022f9ba.tar.gz
Support for WSDL <operation> without <input> message
Diffstat (limited to 'ext/soap/soap.c')
-rw-r--r--ext/soap/soap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 466a876772..8d7318022a 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -2005,7 +2005,11 @@ xmlDocPtr seralize_function_call(zval *this_ptr, sdlFunctionPtr function, char *
use = fnb->input.use;
if (style == SOAP_RPC) {
ns = xmlNewNs(body, fnb->input.ns, gen_ns->c);
- method = xmlNewChild(body, ns, function->requestName , NULL);
+ if (function->requestName) {
+ method = xmlNewChild(body, ns, function->requestName, NULL);
+ } else {
+ method = xmlNewChild(body, ns, function->functionName, NULL);
+ }
}
}
} else {
@@ -2029,7 +2033,7 @@ xmlDocPtr seralize_function_call(zval *this_ptr, sdlFunctionPtr function, char *
use = SOAP_ENCODED;
}
}
-
+
for (i = 0;i < arg_count;i++) {
xmlNodePtr param;
sdlParamPtr parameter = get_param(function, NULL, i, FALSE);