PHP - WebService nusoap Ayuda !!!!

 
Vista:
Imágen de perfil de Cristian
Val: 4
Ha disminuido su posición en 225 puestos en PHP (en relación al último mes)
Gráfica de PHP

WebService nusoap Ayuda !!!!

Publicado por Cristian (95 intervenciones) el 24/08/2014 17:27:40
Hola a todos.. estoy intentando hacer una prueba de web service con nusoap y no me funciona, paso el codigo:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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","u379262287_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[/QUOTE]_DATA:'';
 
$soap_server->service($HTTP_RAW_POST_DATA);

Y el error es el siguiente en el navegador:

1
2
Este archivo XML parece no tener información de estilo asociada. El árbol del documento se muestra debajo.
      <SOAP-ENV: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>

Espero me puedan ayudar.. gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder