Cita:
y el error es el siguiente en el navegador:require_once('lib/nusoap.php');
$soap_server= new SoapServer;
$ns='http://localhost/ws2';
$soap_server->configureWSDL('SOHCNAP SERVICE',$ns);
$soap_server->register(
'Login',
array('name' => 'xsd:string','upass'=>'xsd:string'),
array('return'=>'xsd:int'),
$ns,
$ns.'#Login',
'rpc',
'enconded',
'Login'
);
function Login($name,$upass){
include('clases/base.php');
$base=new database();
$base->Inicializar("testear.esy.es","u379262287_base","u 379262287_crist","cristian78");
$base->Inicializar("localhost","basews","root","");
$base->opendatabase();
$tabla = mysql_query("SELECT id FROM usuarios where usr_name='".$name."' and key= '".$upass."'");
$num_registros=mysql_num_rows($tabla);
if ($num == 0)
{
$ok=0;
return $ok;
}
else{
$ok=1;
return $ok;
}
}
$HTTP_RAW_POST_DATA=isset($HTTP_RAW_POST_DATA)? $HTTP_RAW_POST_DATA:'';
$soap_server->service($HTTP_RAW_POST_DATA);
$soap_server= new SoapServer;
$ns='http://localhost/ws2';
$soap_server->configureWSDL('SOHCNAP SERVICE',$ns);
$soap_server->register(
'Login',
array('name' => 'xsd:string','upass'=>'xsd:string'),
array('return'=>'xsd:int'),
$ns,
$ns.'#Login',
'rpc',
'enconded',
'Login'
);
function Login($name,$upass){
include('clases/base.php');
$base=new database();
$base->Inicializar("testear.esy.es","u379262287_base","u 379262287_crist","cristian78");
$base->Inicializar("localhost","basews","root","");
$base->opendatabase();
$tabla = mysql_query("SELECT id FROM usuarios where usr_name='".$name."' and key= '".$upass."'");
$num_registros=mysql_num_rows($tabla);
if ($num == 0)
{
$ok=0;
return $ok;
}
else{
$ok=1;
return $ok;
}
}
$HTTP_RAW_POST_DATA=isset($HTTP_RAW_POST_DATA)? $HTTP_RAW_POST_DATA:'';
$soap_server->service($HTTP_RAW_POST_DATA);
Cita:
Espero me puedan ayudar... gracias This XML file does not appear to have any style information associated with it. The document tree is shown below.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>SoapServer::SoapServer(): Invalid parameters</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>SoapServer::SoapServer(): Invalid parameters</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>