mnnmountain
mnnmountain

Reputation: 153

SoftLayer API: SOAP-ERROR: Parsing Schema: can't import schema from 'https:/api.softlayer.com/soap/v3/SoftLayer_Product_Package?xsd'

I'm using the SoftLayer PHP library to make SoftLayer API call to from a shell script.

I got the following error when invoking

SoftLayer_SoapClient::getClient ( "SoftLayer_Product_Package", $pakagekey, $userName, $apiKey );

There was an error querying the SoftLayer API: Could not connect to host ERROR | | SOAP-ERROR: Parsing Schema: can't import schema from 'https://api.softlayer.com/soap/v3/SoftLayer_Product_Package?xsd' ERROR | PHP | ERR 1 with message SOAP-ERROR: Parsing Schema: can't import schema from 'https://api.softlayer.com/soap/v3/SoftLayer_Product_Package?xsd' in /softlayer/SoftLayer/SoapClient.class.php:262

The SoapClient.class.php 262 has

$soapClient = new SoftLayer_SoapClient($endpointUrl . $serviceName . '?wsdl');

Any idea why I'm getting this error?

Upvotes: 0

Views: 286

Answers (1)

The code is working fine for me. Please check that you can open successful in a browser these links:

https://api.softlayer.com/soap/v3/SoftLayer_Product_Package?wsdl https://api.softlayer.com/soap/v3/SoftLayer_Product_Package?xsd

The error looks like your machine is not able to connect to those links.

Also make sure you are using the last version of the PHP API client

Regards

Upvotes: 0

Related Questions