Caught exception:Internal Server Error Soap connection php -
i'm building function in php check if user , password match external database, can extract emailadres. have created soap wsdl me can check this.
i can check if user exists, every time try send soapcall request email, error message caught exception:internal server error.
i looked around error, , there somehow wrong array send parameter during request. array consist of login / password of user i'm checking.
the weird thing is, if send array 1 parameter, don't recieve error, recieve empty string in return cause username , password don't match.
i used same structure check if user exists, , not giving error.
here code make connection:
checkemail('hmichiels','xxxxxxx'); function checkemail($ploginstr,$ppasswordstr){ try{ $client = new soapclient('https://milliarium.gabo-mi.com/forms/generic/security/externalemailservice.asmx?wsdl', array('trace'=>1)); $params = array('ploginstr'=>$ploginstr, 'ppasswordstr'=>$ppasswordstr,); $response = $client->__soapcall("getuseremail",array($params)); $responses = $response->getuseremailresult; //check i'm sending inside soapcall echo "request:\n" . $client->__getlastrequest() . "\n"; } catch(soapfault $fault){ echo 'caught exception:', $fault->getmessage(); }
anyone more experience knows problem ? have lost hours on error ><
tnx
soap parameters case sensitive , must match on server side. you're sending ppasswordstr
when should sending ppasswordstr
, defined in wsdl.
Comments
Post a Comment