PHP - Soap Wsdl Php

 
Vista:
sin imagen de perfil

Soap Wsdl Php

Publicado por Roberto (1 intervención) el 23/01/2017 18:56:12
buenas tardes, una consulta por si alguien me puede ayudar o guiar, soy nuevo en estos de los servicios web en php, tengo el siguiente código

1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
 
try {
    $wsdl_url = 'xxx';
    $client = new SOAPClient($wsdl_url);
    $params = array("company"=>"z","login"=>"z","password"=>"x"
    );
    $return = $client->getAuthTOADirect($params);
    print_r($return);
} catch (Exception $e) {
    echo "Exception occured: " . $e;
}
?>

el cual como resultado al mostrar en web me retorna lo siguiente

1
stdClass Object ( [return] => stdClass Object ( ) )

no se si estoy haciendo algo mal espero que 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

You should use

Publicado por Mikaël (1 intervención) el 24/01/2017 14:28:32
Hi,
You should try a WSDL to php generator such as https://github.com/WsdlToPhp/PackageGenerator as it will help you identify how to send the request and what data you get. It's pretty easy and fast.
Good luck,
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar