I am using NuSOAP to try to consume a Web Service built in Java. I have this code so far:
<?php require_once('lib/nusoap.php'); $wsdl='http://localhost:8080/HelloWorldWS/sayHiService?WSDL'; $client=new nusoap_client($wsdl, 'wsdl'); $param='John';#array('name'=>'John'); echo $client->call('Hey', $param); unset($client); ?>
but when the web page gets loaded I get a blank page nothing not even in the code and I really don’t know why. Am I doing something wrong?
although NuSOAP is a very common PHP SOAP library, it’s main use in PHP4 applications I think. because PHP5 has a built-in SOAP extension that is faster (because it is a compiled extension). I also recommend using Zend Framework SOAP library. but I remember I wanted to use some web service (not written by me, implemented in Java) and none of these SOAP clients worked, but the NuSOAP. and I really could not figure out why.
anyway, here is the thing that I did to use that web service back then: