I have copied the drupal_soap_client.inc form the 6.x release and use this in 5.x (see previous issue).
Use SOAP Extension on PHP5 library, WSDL, encoded, prc style message.

A call to a test sever did not work, but after the below code change it did. Perhaps this is usefull, if not, it's my lack of soap knowledge and I like to know the difference between the two.
Old:

        $result['#return'] = $this->client->__soapCall($function, $params);

New:

        $result['#return'] = $this->client->$function($params);
CommentFileSizeAuthor
#1 soapclient.patch505 bytesjhedstrom

Comments

jhedstrom’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
StatusFileSize
new505 bytes

This fix also worked for me (in 6.x) when running wsdl mode. Attached is a patch.

Peter Bex’s picture

A patch that worked for me was to change the call to

$result['#return'] = $this->client->__soapCall($function, array($params));

I believe this is a bug in PHP.

The type of call I'm proposing allows you to add extra arguments like for example headers, which I used in #559752: Patch to add SOAP header reading and writing.

ilo’s picture

Status: Needs review » Fixed

Commited to DRUPAL-6--1. Selected fix is the usage of array($params) by Peter Bex.

Drupalebizonservices, do you want to close this one? or should be create a task to backport this to D5?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.