Jump to content

PHP to WebService using SOAP - Help Please


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);




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??



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...