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=“XML Schema” xmlns:xsi=“http://www.w3.org/2001/XMLSchemainstance”>
soapenv:Body
<ns1:getAccounts soapenv:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:ns1=“AdminServices”>
0MYCPADMINACCOUNTUSERIDMYCPADMINACCOUNTPASSWORD
</ns1:getAccounts>
</soapenv:Body>
</soapenv:Envelope>