Ning Developer Docs

I'm wondering if anyone has had success or trouble connecting to external sites via SOAP using the built-in PHP soap extension? I am trying to connect to a partner's web service and I get the following error (it works perfectly from my local testing environment):

[26-Aug-2008 16:22:33] PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ipaddress:8020/uri?wsdl' in /apps/fohbohtest/widgets/index/lib/helpers/Index_HSHelper.php on line 25

(The address and uri have been removed for privacy)

The code snippet is:

$client = new SoapClient("http://ipaddress:8020/uri?wsdl" , array('trace' => true));

Any help/advice concerning this would be greatly appreciated! Trying to make a deadline this week. Cheers,

Ted

Views: 3

Replies to This Discussion

Hey Ted,

I've been able to sucessfully pull information over SOAP from a few different sources. The first test I did was just using this geocoding example script:


// The address to convert
$address = '1600 Pennsylvania Av, Washington, DC';
// Chose your method, with or without user info
$wsdl = 'http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl';

// Make the connection
$client = new SoapClient($wsdl);

// Use this to see what services are available
var_dump($client->__getFunctions());

// Actually call the service
$result = $client->geocode($address);
var_dump($result);


That worked just fine. I've also tried pulling some from our clients servers and that's worked out fine as well. The one thing I can think of here is that those calls were both just regular calls to port :80 (in other words no port specified). yours look like they're going to port 8020. I wonder if maybe there's some built in limitation against hitting that port? maybe a firewall issue on ning's side?

Maybe try hitting a service that's on port 80 and see if that gets you any further? Good luck and i'm curious to see what you turn up!

-Martin
Martin,

Thanks so much for your reply. It's good to know that soap is working for someone else on the platform. The 8020 port was my first guess too, and I've put in a request to Ning, but not heard back yet. I'll update this discussion if/when I learn more of interest. Thanks!

Ted

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service