Ver Mensaje Individual
  #6 (permalink)  
Antiguo 11/11/2006, 16:16
Leandronp
 
Fecha de Ingreso: noviembre-2006
Mensajes: 10
Antigüedad: 17 años, 5 meses
Puntos: 0
Este es el codigo fuente de la pagina que consume el web service:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "hachettp://doblevdoblevdoblev.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="hachettp://doblevdoblevdoblev.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>


Mientras que faltaria toda la parte de php:

<?php
// include the SOAP classes
require_once('nusoap.php');
// define parameter array (ISBN number)
$param = array('socnro' => $ape, 'docnro' => $nom);
// define path to server application
$serverpath =('hachettp://localhost/reservasws.php?wsdl');
//define method namespace
$ns="hachettp://localhost";
// create client object
$client = new soapclient1($serverpath, true);
// make the call
$client_proxy = $client->getProxy();
$apellido = $client_proxy->AgregarReserva($param);
$apellido = $client->call('AgregarReserva',$param, $ns);

unset($client);
?>

Se llama a la clase soapclient1 en lugar de soapclient porque fue renombrada esa clase en el nusoap.php.

Agradezco respuestas. Saludos.