The best way to consume API



$url = ""; // web service URL 

$client = new nusoap_client($url, false); // soap client to consume API

// XML payload from "soapUI" to send over wsdl server
$xmlRequest='<soapenv:Envelope xmlns:soapenv="" xmlns:tem="" xmlns:hot="">

$return = $client->send($xmlRequest, $url);  // send xml to service url

print_r($return);  // excepted output 😉


Don’t find fault. Find a remedy.

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch