SoapClient Result
| From: | uaca man | Date: | Tue, 18 Nov 2008 15:54:35 +0000 |
| Subject: | SoapClient Result | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-283471@lists.php.net to get a copy of this message | ||
Hello,
i´m trying to consume a .net webservice from php as fallow:
$client = new SoapClient('http://localhost:1105/Web
Service
.Net/Service.asmx?WSDL');
print_r($client->HelloWorld());
and the result is:
stdClass Object
(
[HelloWorldResult] => Hello World
)
The call works as expected, the problem is the result, the
$client->HelloWorld() returns a string in .net but in php is a stdClass with
a HelloWorldResult attribute.
I'm not sure of what to ask but something does not looks right here, i think
i should get a string back from .net and not a class except for complex
types.
Do i have to write something like this
$client->HelloWorld()->HelloWorldResult for every method for the web service
to get the actual result?
Uacaman