HSPHERE XML SOAP API Problem

pbhost

Perch
I m using HSPHERE SOAP API to add and change mailbox passwords, everything was working fine.

Some days ago the change mailbox password function stopped working, but the add mailbox still works.

I looked into the code several times and couldnt find a problem, the code its almost the same as create mailbox


the error showed is

<?xml version="1.0" encoding="UTF-8"?>
<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/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


The XML I generate is

<?xml version="1.0" encoding="UTF-8" ?>
<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:changeMailboxPassword soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="MailServices">
<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:MailServices"><accountId xsi:type="xsd:long">myaccountid</accountId><login xsi:type="xsd:string">myuser</login><password xsi:type="xsd:string">mypassword</password><role xsi:type="ns2:Role" xsi:nil="true" /></multiRef>
<email xsi:type="xsd:string">aaacriacaixa</email>
<domain xsi:type="xsd:string">mydomain</domain>
<newPassword xsi:type="xsd:string">ZmRkc2YyMzI=</newPassword>
</ns1:changeMailboxPassword>

</soapenv:Body>
</soapenv:Envelope>


Thanks for any help..
 
How long ago was it last working? Psoft has made many API changes and it will help to know when you last utilized this function.
 
Hello Stephen

I know it because of my client's alert, maybe beggining of the month, but Im not sure... please let me know when its fixed.

Thanks
Carolina


How long ago was it last working? Psoft has made many API changes and it will help to know when you last utilized this function.
 
Well I was asking because there has not been any API change in the last month. Have you submitted a ticket on the matter? I think this one will need to be sent over to psoft :(
 
I dont know exacly when the problem started, could have been October.

Yes I opened ticket HOZ-76648-611

How do I proceed?

Thanks


Well I was asking because there has not been any API change in the last month. Have you submitted a ticket on the matter? I think this one will need to be sent over to psoft :(
 
I will give this ticket to Tanmaya next time he is in shift and have him take a look then we will reply if any mroe info is needed and likely forward it over to psoft for a definitive answer. Things that are working are not supposed to just quit working.

Your IP is on the "allowed" API access list, have you requested this? If not it is likely the reason, becsue psoft made a new security measure in hsphere that requires an ip access list. I would think it is there since only one function is not working.
 
Ok, Thanks Stephen

No, its not the IP since only the change mailbox function dont work...and the IP was added months ago..
 
Back
Top