Postponed (maintainer needs more info)
Project:
Web service client
Version:
7.x-1.0-alpha4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Sep 2011 at 08:24 UTC
Updated:
28 Mar 2012 at 18:57 UTC
SOAP parameters in parse operations not being handled correctly
in the function declaration of wsclient_soap_parse_operations (line 184 of wsclient_soap/wsclient_soap.module) there is the following:
// Cut off trailing ')'.
$param_string = substr($parts[1], 0, -1);
$parameters = explode(',', $param_string);
The parameter string being passed however is something in the line of
string $parameter1, string $parameter 2
Due to the explode "," , there occurs an error in
foreach ($parameters as $parameter) {
$parts = explode(' ', $parameter);
$param_type = $parts[0];
// Remove leading '$' from parameter name.
$param_name = substr($parts[1], 1);
For param 2 it will give $param_type -> " ", $param_name -> "tring"
by modifying the explode to use ", " instead of "," everything works :)
patch attached
| Comment | File | Size | Author |
|---|---|---|---|
| wsclient_soap_explode_function_parameters_fix.patch | 610 bytes | romenov |
Comments
Comment #1
klausiCan you provide me the WSDL file that causes the problem?
Comment #2
dan carlson commentedWouldn't it be better to do a trim or rtrim then a substr.