I have webservice that when opening in the browser displays an xml file. I connected to the webser with these line
$client = new SoapClient("http://XXXXXXXXX/webservice/test?wsdl");
printing out the $client will display this:
SoapClient Object
(
[_soap_version] => 1
[sdl] => Resource id #4
)
Now, my question is how do I user some method presnt in the xml file just by viewing the xml file? It is because I want to retrieve and verify some data then manipulate it.
How do I do this? am I doing things right?
PS: just to make things put to context, I am able to access the xml viewing it through the browser. Somehow this is the only thing that was given to me. If it is possible to play around in PHP with only that I would really appreciate the replies.
Thanks
If you know the name of function, and parameters for that function you can call the func.
$client = new SoapClient("http://XXXXXXXXX/webservice/test?wsdl");
$info = $client->__soapCall('Name of function' array('param1' => 1, 'param2' => 2);
If you do not know the exact name of parameters this will help
var_dump ($client->__getTypes());