Help - Search - Members - Calendar
Full Version: Working example anyone?
The Planet Forums > API > API Support
avantvision.net
Does anyone have a working connectivity example of the api, that's willing to share?
I am interested in taking a peek to some of your php xml processors, etc..

Have tried with the 2 examples provided and got errors on both.

We are particularly interested in showing bandwidth graphics and creating a remote reboot script.

Thanks in advance for your time.
avantvision.net
i am using soapui to test incoming messages and keep getting:

CODE
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">a:FailedAuthentication</faultcode>
<faultstring xml:lang="en-US">Access is denied.</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>


i have a ticket in orbit that says my account is enabled, i am doing anything wrong
Kevin Hazard
There has been an internal discussion going on trying to figure out what could be causing these issues. We've tried testing and have not seen the same problem, so it would appear that the username/password are not being processed correctly as part of the request or the credentials are somehow invalid.

If you're still having trouble, create a ticket in Orbit and shoot me the ticket number via PM or here on the board and we'll get some of the developers in the conversation to try and help.
avantvision.net
Hi i am still having problem with the Access Denied.

This is the RAW output from SoapUI

My Request to HardwareConsoleService



I keep getting Access Denied

I am using SoapUI to test and keep getting the error, also have written a few php scripts and all keep getting Authorization Denied.
avantvision.net
can you please confirm that my account is validated for acces at the api
Shelby Cain
QUOTE (avantvision.net @ Jan 15 2009, 01:26 AM) *
can you please confirm that my account is validated for acces at the api


Hi. We've been discussing your problem internally and all our internal/external validation tests show the api is working so I can only come up with a few likely scenarios as to what the problem could be:

1) The username/password is incorrect or the account is inactive or otherwise invalid.
2) The account doesn’t have the “api_access” privilege flag enabled.

One thing you can do on your end is to double-check that the account you are attempting to use with the api can log into Orbit. If you are able to log into the account successfully from Orbit that will rule out something obvious like an inactive account, incorrect password, etc.

Please open a ticket with support as Kevin requested so that your issue can be properly escalated. In that ticket, arrange to provide the username/password credentials of the account you are using along with the exact parameters you used for the api calls that you are attempting to execute so we can try and duplicate your issue on our end.

If you are uncomfortable with disclosing an existing password on an account, you can log into Orbit and change the password temporarily prior to disclosing it to us and then set it back once we've conducted our tests.
avantvision.net
For all you planet staff guys...thanks.

Mission Solved thank you guys...
Tim Igoe
I'm currently noticing the same [a:FailedAuthentication] Access is denied. error on our company account, and my personal account.

I've checked the passwords, and they are correct - if i change them I get an error at the new SoapClient() stage (I'm using PHP to do the development). SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.theplanet.com/Svc/HardwareHardwareService.svc?WSDL' so they must be ok to pass the first stage.

If the password / username are correct then I get through the SoapClient and connect ok, but when i try to call GetHardwareObjectList it gives me the Access Error.

At this moment I'm just trying to enumerate the servers on our account, starting with something I thought would be simple.

CODE
$params = array('login' => 'value', 'password' => 'pass');
ini_set('soap.wsdl_cache_enabled', false);
$Soap = new SoapClient('https://api.theplanet.com/Svc/HardwareHardwareService.svc?WSDL', $params);
$Soap->GetHardwareObjectList();
Kevin Hazard
Hi Tim, I used the IP you posted to the forums to cross-check against our Orbit access logs and found two accounts, so I've asked one of the folks on the development side to take a look at both to track down what's going on there (and if it's the same issue the OP ran into).

If you have a moment, send me a PM with which account you're using for the API access, and I'll make sure we're focusing on the correct one.

Thanks!
Tim Igoe
QUOTE (Kevin Hazard @ Jan 22 2009, 07:16 PM) *
Hi Tim, I used the IP you posted to the forums to cross-check against our Orbit access logs and found two accounts, so I've asked one of the folks on the development side to take a look at both to track down what's going on there (and if it's the same issue the OP ran into).

If you have a moment, send me a PM with which account you're using for the API access, and I'll make sure we're focusing on the correct one.

Thanks!

2 accounts is right, I've tried from both.

PM'd you both account numbers which I've tried from, if you need anything else let me know.
Tim Igoe
Got it working now... I'd completely missed the 'please contact support to have the API support enabled' bit on the front page of teh API docs blush.gif
Kevin Hazard
Awesome! Glad we got it sorted out and looking forward to seeing some of the cool stuff you come up with for it!
Tim Igoe
Most of our servers are now able to be queried fine apart from one older one (ServerCommand / EV1Servers one) - I left this with support for now.

Got graphs / stats coming through ok, but the estimate value often seems to be 0 too.
avantvision.net
i only could get estimates from the month query
rgmarcha
I'm having the same problem of "Access is denied". I created a support ticket, but they confirmed me that the couple of accounts I'm using to test the API have the API enabled.

I'm using the folloging test code:

CODE
$params = array('login' => 'login', 'password' => 'pass', 'trace' => true);
ini_set('soap.wsdl_cache_enabled', false);
$Soap = new SoapClient('https://api.theplanet.com/Svc/ConnectivityService.svc?WSDL', $params);
$Soap->HelloPlanet();


Please help.

rgmarcha
Shelby Cain
QUOTE (rgmarcha @ Feb 6 2009, 09:36 AM) *
I'm having the same problem of "Access is denied". I created a support ticket, but they confirmed me that the couple of accounts I'm using to test the API have the API enabled.


It looks like your customer account still isn't configured to allow API usage. Until that step has happened, none of your accounts (even those with the api_access privilege) will be able to use the API. I've updated the ticket you opened so support should be able to resolve your issue.
ChuFuong
Access being denied is almost always a result of permissions. First step is to setup configuration and be sure that's accurate with support, then go from there.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.