Hsphere XML API

arkhost

Perch
Ok, I'm at it again. Trying to use the XML API. Now I'm getting a new error:

ACCESS FORBIDDEN (Error 403).

According to the documentation on Psoft website, this meant that the IP of the originating request was not in the new "access list". So, I contact Jodohost Support, and they've assured me that my domain IPs are definitely listed in the access list, and that their "test script" worked perfectly. They also told me that I need to review my code (which was working up until the most recent Hsphere upgrade/patch).

So, I'm looking through my SOAP envelope and body, and I can't figure out what is wrong. Can someone familiar with the XML API take a look at this SOAP envelope/body and see if there is anything wrong that you can tell (which would cause the CP server to return "Access Forbidden")?

I'm sending the request to:
https://cp.myCPdomainname.com/psoft/servlet/AxisServlet




<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
<soapenv:Body>
<ns1:getAccounts soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="AdminServices">
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:AuthToken" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2=":urn:AdminServices"><accountId xsi:type="xsd:long">0</accountId><login xsi:type="xsd:string">MYCPADMINACCOUNTUSERID</login><password xsi:type="xsd:string">MYCPADMINACCOUNTPASSWORD</password><role xsi:type="ns2:Role" xsi:nil="true" /></multiRef>
</ns1:getAccounts>
</soapenv:Body>
</soapenv:Envelope>
 
Back
Top