web service nusoap hangs with no ascii characters

Asked

Viewed 335 times

2

I developed a web service on my php machine with NUSOAP and it worked cool, both by calling for my own application, and by testing with the SOAPUI.

I transferred the web service to the server and both there, as in any other machine that is not mine it does not work.

I found it strange and went thrashing, I found that the error happens when, when receiving parameters of connection with the database, which comes encrypted (Rijndael), and then encoded in Base64, when making a code of Base64, it crashes. Only when printing on the screen the "decoded" strings it already stuck, however, when removing the "strange" characters it did not ascii that Rijndael created, it printed and the web service runs normal.

I thought it had something to do with utf-8 or iso8859, but this problem happens both ways.

Does anyone have any idea ?

1 answer

0

This sounds like server problems to me. But it passes the error or print.

The error I once had was XML solved so

function nusoap_parser($xml,$encoding='UTF-8',$method='',$decode_utf8=true){
    parent::nusoap_base();
    $xml = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $xml);
    // End hack.
    $this->xml = $xml;
    $this->xml_encoding = $encoding;
    $this->method = $method;
    $this->decode_utf8 = $decode_utf8;

I’m available,

  • it returns no error, I call with $nusoap->call(); and it returns NULL, but when I test with SOAPUI it works normally, either on my machine or on the server or on other machines, it only finds this error when called from my application. Here is the client code: <code class="prettyprint"> </code>

  • Sorry, I tried to format the code to post, but it didn’t go very well. &#xA;&#xA;Aqui vai o código de chamada:&#xA;&#xA;$bArqValidado = $client->call('ValidaArquivo',&#xA; array("nTipoArq"=>$tipoValidacao,&#xA; "nIdArquivo"=> $nIdArquivo,&#xA; "sLoginSindex"=>$sLoginSindex,&#xA; "nCodProduto"=>$nCodProduto));

  • Kaic0, if you are trying to validate this in a WSDL or something like a URL don’t forget to do Serialize. In fact I don’t see anything wrong with your code in that part you sent.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.