Jump to content

Cliente webservice em php

Paulo Cabral

Recommended Posts

Boa noite! Estou a pretender desenvolver um cliente de um webservice criado por mim em php! Ja consegui conexão com o webservice e ja consigo chamar uma função do webservice!

essa função supostamente recebe uma string... eu envio essa string mas ele não é recebida no webservice.

deixo aqui o meu codigo php

$client = new SoapClient("http://localhost:8080/ProjectoServer/Server?WSDL", array('exceptions' => 0));
$name = 'teste';
$result = $client->hello($name);
if (is_soap_fault($result)) {
 trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faultstring})", E_USER_ERROR);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.