dmitry Thu Feb 19 13:49:51 2004 EDT Modified files: /php-src/ext/soap php_sdl.c Log: Don't try to use <input> name instead of <opeartion> name for encoding RPC call http://cvs.php.net/diff.php/php-src/ext/soap/php_sdl.c?r1=1.64&r2=1.65&ty=u Index: php-src/ext/soap/php_sdl.c diff -u php-src/ext/soap/php_sdl.c:1.64 php-src/ext/soap/php_sdl.c:1.65 --- php-src/ext/soap/php_sdl.c:1.64 Thu Feb 19 11:46:52 2004 +++ php-src/ext/soap/php_sdl.c Thu Feb 19 13:49:50 2004 @@ -17,7 +17,7 @@ | Dmitry Stogov <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_sdl.c,v 1.64 2004/02/19 16:46:52 dmitry Exp $ */ +/* $Id: php_sdl.c,v 1.65 2004/02/19 18:49:50 dmitry Exp $ */ #include "php_soap.h" #include "libxml/uri.h" @@ -775,9 +775,12 @@ 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 @@ 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 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php