i mean by when you call a function you recieve a class, like in the example provided when you first create a web service, you call a function to recieve the TEmployee class, i have a similar class and function, but i call it i get an array back from it, how ever i have tried several ways of getting the propertise from the resulting class..
Example class being resulted:
[pascal]
TXShellUser = Class(TRemotable)
public
Username: String;
Password: String;
XSID: String;
end;
TXShellService = Class(.. , ..)
....
function GetUser(XSID: String): TXShellUser; stdcall;
end;
[/pascal]
i use the following to call the function in PHP:
Code:
<?php
require_once('nusoap/lib/nusoap.php');
$soapclient = new soapclient('http://localhost/cgi-bin/XShell.exe/wsdl/IXShellService', 'wsdl');
$user= $soapclient->call('GetUser');
echo 'Username: <b>' . $user[0] . '</b><br>';
echo 'Username: <b>' . $user["0"] . '</b><br>';
echo 'Username: <b>' . $user["Username"] . '</b><br>';
echo 'Username: <b>' . $user['username'] . '</b><br>';
echo 'Result: <b> . $user . </b><br>';
?>
But all i get back is
Username:
Username:
Username:
Username:
Result:
Array
This might be a PHP question more than a delphi/web service one, but a have accessed arrays like above before with out any problems, and i couldnt find any alternatives on the web. I hope i make sense lol
Bookmarks