Jump to content

PHP to WebService using SOAP - Help Please


philaj

Recommended Posts

Hi there

 

I'm an intermediate user of PHP, but have never needed to connect to a webservice before, and am having some problems. Hope someone can help

 

I have the following code to test connecting to the service;

 

$soapURL = 'http://xxx.xxx.xx.xx4/wsdl/wsdl' ;

$soapParameters = Array('login' => "xxx", 'password' => "1234") ;

$client = new SoapClient($soapURL, $soapParameters);

var_dump($client->__getFunctions());

 

 

Which works fine and give me back the following;

 

array(6) { [0]=> string(35) "CallResponse Call(Call $parameters)" [1]=> string(59) "FieldManagerResponse FieldManager(FieldManager $parameters)" [2]=> string(56) "FixScheduleResponse FixSchedule(FixSchedule $parameters)" [3]=> string(44) "GeocodeResponse Geocode(Geocode $parameters)" [4]=> string(59) "ShowCallInfoResponse ShowCallInfo(ShowCallInfo $parameters)" [5]=> string(59) "WorkScheduleResponse WorkSchedule(WorkSchedule $parameters)" }

 

I now want to call the ShowCallinfo function which has 2 parameters, an integer 0, and a string 'CA12345' - and should return a set of data;

 

I have tried so many combinations I am going dizzy, and just can't get anything to work.

 

latest I have tried (immediately after the other code) are;

 

$result = $client->ShowCallInfo(0,'CA212345');

Which results in a SoapFault exception: [HTTP] Not Found in

 

Please can someone help??

 

Phil

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.