I have the following web service I'd like to communicate with using php soap:
with the following php code:
$net = new SoapClient("http://www.animplant.com/rmb/rmbService?wsdl");
$result=$net->__soapCall('getResult', array('network'=>'10', 'x1'=>0.2, 'y1'=>0.2, 'x2'=>0.2, 'y2'=>0.2,
'x3'=>0.2, 'y3'=>0.2, 'x3'=>0.2, 'y3'=>0.2,
'x4'=>0.2, 'y4'=>0.2, 'x5'=>0.2, 'y5'=>0.2,
'x6'=>0.2, 'y6'=>0.2, 'x7'=>0.2, 'y7'=>0.2,
'x8'=>0.2, 'y8'=>0.2, 'x9'=>0.2, 'y9'=>0.2,
'x10'=>0.2, 'y10'=>0.2, 'x11'=>0.2, 'y11'=>0.2,
'x12'=>0.2, 'y12'=>0.2, 'x13'=>0.2, 'y13'=>0.2,
That code constantly catches a java.lang.NullPointerExcep
tion from the service.
After some debugging, I found that my php soap object was not properly formatting the header as the service excepted and hence the null pointer issue.
I have access to this testing page to make sure that the service is working correctly:
if you plug in 0.2 in all of the fields of getResult and submit, you'll notice that it's working properly.
I was wondering if anyone could figure out what soap header format the getResult function requires and how I can get PHP to correctly pass that information to the service. I believe all the information can be deduced from the above code and links but let me know if you require more details.
Thanks for your time.