Re: [SOAP] consuming WCF with php5.2.6

[email protected] (Roger Roelofs)
Newsgroups php.soap
Message-ID <[email protected]>
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{
>      $client = new
> SoapClient("http://services.ciphe.org.uk/FindPlumber/FindPlumberService.svc?wsdl");
>      # get a list of the available methods
>      print "Functions:\n";
>      var_dump($client->__getFunctions());
>    
Roger
--
Roger Roelofs
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.