note 82382 added to function.soap-soapclient-soapcall

From: Date: Tue, 08 Apr 2008 21:27:39 +0000
Subject: note 82382 added to function.soap-soapclient-soapcall
Groups: php.notes 
Request: Send a blank email to php-notes+get-138036@lists.php.net to get a copy of this message
I have spent several hours working trying to get up and running with SOAP. I've made significant progress and have resolved several issues, but I'm really stuck on one last issue. The code that represents what I'm trying to do is: $wsdl = "http://www.webservicex.net/whois.asmx"; $client = new SoapClient(null, array('soap_version' => SOAP_1_1, 'trace' => 1, 'uri' => "http://www.webservicex.net", 'location' => $wsdl)); $result = $client->__soapCall("GetWhoIS", array("HostName" => "domainname.com"), array("soapaction" => "http://www.webservicex.net/GetWhoIS")); I have this same code working without parameters, but not with parameters. I have tried many, many variations on the second argument in the __soapCall call. I have put an array around it that has the 'GetWhoIS' key. I have dropped the key 'HonstName'. I tried to convert it to an object. None of these worked. This works fine in WSDL mode, but I need to be able to make it work in both modes. Can anyone tell me what I'm doing wrong? ---- Server IP: 64.71.164.2 Probable Submitter: 69.73.15.26 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-soapcall.php Edit -- https://master.php.net/note/edit/82382 Del: integrated -- https://master.php.net/note/delete/82382/integrated Del: useless -- https://master.php.net/note/delete/82382/useless Del: bad code -- https://master.php.net/note/delete/82382/bad+code Del: spam -- https://master.php.net/note/delete/82382/spam Del: non-english -- https://master.php.net/note/delete/82382/non-english Del: in docs -- https://master.php.net/note/delete/82382/in+docs Del: other reasons-- https://master.php.net/note/delete/82382 Reject -- https://master.php.net/note/reject/82382 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138036) next »