sKunKbad Posted May 30, 2007 Share Posted May 30, 2007 I have some code that works in php4, and uses nusoap.php. If I remove the include to nusoap for php5, I get errors. Do I need to do something other than removing the include? Here's the code: <?php /* display SOAP errors */ function showErrors( $soapclient, $results ) { echo 'Request: <xmp>'.$soapclient->request.'</xmp>'; echo 'Response: <xmp>'.$soapclient->response.'</xmp>'; echo 'Debug log: <pre>'.$soapclient->debug_str.'</pre>'; echo $results['faultstring']; } //require_once('./nusoap/nusoap.php'); //php5 is supposed to have its own soap, so I shouldn't need this. $soapclient = new soapclient('http://www.biblegateway.com/usage/votd/'); $parameters= array('preferences'=>array('version_id'=>'31', 'utc_offset'=>'-5'), 'options'=>array('include-copyright'=>'both') ) ); $results = $soapclient->call('doGetVotd',$parameters); if($err = $soapclient->getError()){ showErrors($soapclient, $results); } else { print $results; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/53659-soap-php5/ Share on other sites More sharing options...
sKunKbad Posted May 31, 2007 Author Share Posted May 31, 2007 Since I posted the question, I learned a little about php5's soap, and it appears this needs to be a non-WSDL request, but after playing a little, I'm getting nowhere. I don't know exactly what the location and uri are supposed to be for the non-WSDL request, and how to get the results of the request to print. I'm not opposed to learning, but I haven't found a whole lot of info on what I'm trying to do here. Anyone have some tips? Quote Link to comment https://forums.phpfreaks.com/topic/53659-soap-php5/#findComment-265306 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.