NO ME RECIBE LA FACTURA Y ME MARCA EL SIGUIENTE ERROR
Publicado: Mié Mar 18, 2015 11:45 am
Yo también tengo una problema al enviar mi XML a Soriana , estoy desarrollando una aplicación Web en PHP, me arroja el siguiente error APLICATION ERROR CODE: Error de Invocación, el parámetro CFD no debe ser nulo
Manualmente le estoy pasando una variable
$client = new nusoap_client('http://www2.soriana.com/integracion/rec ... SDL','wsdl');
$err = $client->getError();
if ($err) {
echo 'Error en Constructor' . $err ;
}
$remision = '<?xml version="1.0" encoding="utf-8"?>';
$remision .= '<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">';
$remision .= '<soap12:Body>';
$remision .= '<RecibeCFD xmlns="http://www.sci-grupo.com.mx/">';
$remision .= '<XMLCFD>';
$remision .= 'AQUI PONGO MI XML';
$remision .= '</XMLCFD>';
$remision .= '</RecibeCFD>';
$remision .= '</soap12:Body>';
$remision .= '</soap12:Envelope>';
$result = $client->call('RecibeCFD','$remision');
if ($client->fault) {
echo 'Fallo';
print_r($result);
} else { // Chequea errores
$err = $client->getError();
if ($err) { // Muestra el error
echo 'Error:<br/>' . $err . '<br/>' ;
} else { // Muestra el resultado
echo '<br/>Resultados ' . '<br/>';
print_r ($result);
}
}
echo "<h2>Request</h2><pre><div style='height:200px; overflow:auto';";
echo $hl->highlight( $client->request);
echo "</div></pre>";
echo "<h2>Response</h2><pre><div style='height:200px; overflow:auto';";
echo $hl->highlight($client->response);
echo "</div></pre>";
Manualmente le estoy pasando una variable
$client = new nusoap_client('http://www2.soriana.com/integracion/rec ... SDL','wsdl');
$err = $client->getError();
if ($err) {
echo 'Error en Constructor' . $err ;
}
$remision = '<?xml version="1.0" encoding="utf-8"?>';
$remision .= '<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">';
$remision .= '<soap12:Body>';
$remision .= '<RecibeCFD xmlns="http://www.sci-grupo.com.mx/">';
$remision .= '<XMLCFD>';
$remision .= 'AQUI PONGO MI XML';
$remision .= '</XMLCFD>';
$remision .= '</RecibeCFD>';
$remision .= '</soap12:Body>';
$remision .= '</soap12:Envelope>';
$result = $client->call('RecibeCFD','$remision');
if ($client->fault) {
echo 'Fallo';
print_r($result);
} else { // Chequea errores
$err = $client->getError();
if ($err) { // Muestra el error
echo 'Error:<br/>' . $err . '<br/>' ;
} else { // Muestra el resultado
echo '<br/>Resultados ' . '<br/>';
print_r ($result);
}
}
echo "<h2>Request</h2><pre><div style='height:200px; overflow:auto';";
echo $hl->highlight( $client->request);
echo "</div></pre>";
echo "<h2>Response</h2><pre><div style='height:200px; overflow:auto';";
echo $hl->highlight($client->response);
echo "</div></pre>";