3

Dear Stackoverflowers,

Is it possible to do the following?

$client = new SoapClient("wsdldocument.wsdl");
$result = $client->myFunction( $param1, $param2, $param3 );

(How) Can I pass multiple arguments to a call?

I have already tried the following, but this also didn't work for me:

$client = new SoapClient("wsdldocument.swdl");
$params = array( "param1" => $param1, "param2" => $param2, "param3" => $param3 );
$result = $client->__soapCall( "myFunction", $params );
2
  • php.net/manual/en/soapclient.soapcall.php Commented Sep 20, 2011 at 23:28
  • Thank you for your reaction Hakre, but i have already tried this. Somehow only the first parameter get's through. I will edit my post to show you what i've also tried. Commented Sep 21, 2011 at 7:22

1 Answer 1

3

I got it working :)

The WSDL file had been cached and changed afterwards. The following code helped me out:

ini_set( "soap.wsdl_cache_enabled", 0 );
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.