You can google for some, but it is pretty easy to integrate nusoap in ci.
1) Download nusoap
2) put the nusoap folder in /application/libraries/Nusoap
That’s it! Now use it.
in a controller:
//instantiate nusoap
require_once(APPPATH.'libraries/Nusoap/nusoap.php');
//set the url to the soapserver interface
$client = new nusoap_client('https://soapserver.com/services/clientWSDL_1-3.php');
//create an array of parameters to be sent to soap server:
$n_params = array(
'cid' => 'f118f93',
'password' => 'pass',
'leadName' => 'Test From API2',
'leadEmail' => '[email protected]'
);
//call the soap server and send it our data
$result = $client->call('addEditLead', $n_params);
//check our response
if ($client->fault)
{
echo '<h2>Fault</h2><p><pre>';<br />
print_r($result);<br />
echo '</p>
</pre><p>‘;<br />
} else {<br />
// Check for errors<br />
$err = $client->getError();<br />
if ($err) {<br />
// Display the error<br />
echo '</p><h2>Error</h2><pre>' . $err . '</pre><p>‘;<br />
} else {<br />
// Display the result<br />
echo '</p><h2>Result</h2><pre>';
print_r($result);
echo '</pre><p>‘;<br />
}<br />
echo ‘</p><h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre><p>‘;<br />
echo ‘</p><h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre><p>‘;<br />
echo ‘</p><h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre><p>‘;
</pre>