ayewalekar2000 Posted December 16, 2008 Share Posted December 16, 2008 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 Link to comment https://forums.phpfreaks.com/topic/137199-php4-calling-web-service-using-phpnusoap-class-with-xml-file-as-input/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.