Re: [SOAP] consuming WCF with php5.2.6
| From: | Roger Roelofs | Date: | Mon, 28 Sep 2009 23:18:57 +0000 |
| Subject: | Re: [SOAP] consuming WCF with php5.2.6 | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2990@lists.php.net to get a copy of this message | ||
Derek,
Two ideas.
First try
$wcf = $client->PerformSearch(array['RequestMessage'] => $myParam));
The indentation got a little garbled in the email, so I could be wrong here.
Second, my guess is you are talking to a MS server so you might need some code to alter the xml to match the expected namespaces. Check out this comment from the php docs
http://www.php.net/manual/en/soapclient.dorequest.php#74123
hth
On 09/28/2009 06:10 PM, Derek Almond wrote:
I'm having trouble finding the magic combination to consume a WCF service, can anyone advise on where I'm wrong? I've got a test script as follows, (it's locked down to my IP so i dont think you;'ll be able to test it, but i've included the wsdl location for completeness) <?php try{-- Roger Roelofs rer@datacompusa.com$client = newSoapClient("http://services.ciphe.org.uk/FindPlumber/FindPlumberService.svc?wsdl");# get a list of the available methods print "Functions:\n"; var_dump($client->__getFunctions()); Roger