Internal Server ErrorBEA-380001

0

Dear,

I'm trying to consume a WS from a PHP application.

My code is as follows:

<?php 
$lib_nusoap='libs/nusoap/nusoap.php';
require_once($lib_nusoap);
$all_info = array();
$client = new nusoap_client('localhost:7001/miservicio/servicio?WSDL', true);
$all_info[]=$client->call('buscaAlumnoByRut', array("rut"=>"12345678"));
$err = $client->getError();
var_dump($all_info);

and the answer is: Internal Server ErrorBEA-380001

<soapenv:Envelope xmlns:soapenv="http://schemas.xmloap.og/soap/enelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>BEA-380001: Internal Server Error</faultstring>
         <detail>
            <con:fault xmlns:con="http://www.bea.com/wi/sb/contex">
               <con:errorCode>BEA-380001</con:errorCode>
               <con:reason>Internal Server Error</con:reason>
               <con:location>
                  <con:node>RouteTo_DatosBasicosBS</con:node>
                  <con:path>response-pipeline</con:path>
               </con:location>
            </con:fault>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

I remain attentive!

    
asked by Stevn 02.02.2017 в 19:54
source

1 answer

0

I would recommend doing it using the SOAP client that offers PHP and not using nusoap (has not it become obsolete?) .

Example of use:

try {
  $cliente = @new SoapClient(
    'http://localhost:7001/miservicio/servicio?WSDL',
    [
      'exceptions' => 1,
      'trace' => 1,
    ]
  );
} catch (SoapFault $e) {
  echo "<p>Datos de la excepción:</p>\n";
  var_dump($e);
  exit();
}
/* Mostramos datos de depuración */
echo "<p>Funciones:</p>\n";
var_dump($cliente->__getFunctions());
echo "<p>Tipos de datos:</p>\n";
var_dump($cliente->__getTypes());
try {
  $resultado = $cliente->__call(
    'buscaAlumnoByRut',
    [
      'rut' => '12345678',
    ]
  );
  echo "<p>Resultado:</p>\n";
  var_dump($resultado);
  echo "<p>Detalles de la petición:</p>\n";
  var_dump($cliente->__getLastRequest());
  echo "<p>Detalles de la respuesta:</p>\n";
  var_dump($cliente->__getLastResponse());
} catch (SoapFault $e) {
  echo "<p>Detalles de la petición:</p>\n";
  var_dump($cliente->__getLastRequest());
  echo "<p>Datos de la excepción:</p>\n";
  var_dump($e);
  exit();
}

With this code it will be clear to you what generates what code. My assumption is that no exception occurs due to communication problems and that the problem may be returning the web service to which you connect.

With what you get back the execution of this code I can help you to better debug what is happening. I do not use what the browser shows, I would need the HTML content since var_dump could contain data with XML tags that would be interpreted by the browser as part of the content of the page.

    
answered by 02.02.2017 в 20:54