Hello,
I am trying to call an web service using nusoap class library with php 4. it works for me with input array ($param).
following is the code for reference:
require_once('libs/nusoap.php');
$client = new soapclient($URL,"wsdl");
$param = array('Value' => 'This is Avinash Test');
$results = $client->call("GetGenericCollection", $param);
if ($client->fault) {
trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faulstring})", E_ERROR);
} else {
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
// Display the result
echo '<h2>Result</h2><pre>';
print_r($result);
echo '</pre>';
}
}
But, Now I wanted to call it using xml file as input rather array ($param).
So requesting help, any help will be appreciated !!!
Thanks
ayewalekar2000