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&#40;'nusoap/lib/nusoap.php'&#41;; 

  $soapclient = new soapclient&#40;'http&#58;//localhost/cgi-bin/XShell.exe/wsdl/IXShellService', 'wsdl'&#41;;  
  $user= $soapclient->call&#40;'GetUser'&#41;; 
  echo 'Username&#58; <b>' . $user&#91;0&#93; . '</b><br>'; 
  echo 'Username&#58; <b>' . $user&#91;"0"&#93; . '</b><br>'; 
  echo 'Username&#58; <b>' . $user&#91;"Username"&#93; . '</b><br>';
  echo 'Username&#58; <b>' . $user&#91;'username'&#93; . '</b><br>';
  echo 'Result&#58; <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