summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-02-19 18:49:50 +0000
committerDmitry Stogov <dmitry@php.net>2004-02-19 18:49:50 +0000
commit8b9607cff10018c48994e5bc68be247ce9132f7b (patch)
tree96351df6fe00d55babea34812ab10faf97d79cc7 /ext/soap/php_sdl.c
parentbac453038adeaa85425637aa7ca54e9226d6b208 (diff)
downloadphp-git-8b9607cff10018c48994e5bc68be247ce9132f7b.tar.gz
Don't try to use <input> name instead of <opeartion> name for encoding RPC call
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 304c4f7e3b..6882f43913 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -775,9 +775,12 @@ static sdlPtr load_wsdl(char *struri)
function->requestParameters = wsdl_message(&ctx, message->children->content);
name = get_attribute(input->properties, "name");
+/* FIXME
if (name != NULL) {
function->requestName = estrdup(name->children->content);
} else {
+*/
+ {
function->requestName = estrdup(function->functionName);
}
@@ -801,11 +804,14 @@ static sdlPtr load_wsdl(char *struri)
function->responseParameters = wsdl_message(&ctx, message->children->content);
name = get_attribute(output->properties, "name");
+/* FIXME
if (name != NULL) {
function->responseName = estrdup(name->children->content);
} else if (input == NULL) {
function->responseName = estrdup(function->functionName);
} else {
+*/
+ {
int len = strlen(function->functionName);
function->responseName = emalloc(len + sizeof("Response"));
memcpy(function->responseName, function->functionName, len);
@@ -954,7 +960,7 @@ static sdlPtr load_wsdl(char *struri)
return ctx.sdl;
}
-#define WSDL_CACHE_VERSION 07
+#define WSDL_CACHE_VERSION 0x08
#define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type);
#define WSDL_CACHE_GET_INT(ret,buf) ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char)(*buf)[2]<<16)|((int)(*buf)[3]<<24); *buf += 4;