help me about php and object class that return from web service
| From: | Lerchart Thamtheerasathian | Date: | Mon, 13 Jan 2003 09:34:46 +0000 |
| Subject: | help me about php and object class that return from web service | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-390@lists.php.net to get a copy of this message | ||
i created my web service in C# that returns class
public class MyInfo
{
public int x;
public int y;
}
...
[WebMethod]
public MyInfo TestClass(int num1,int num2)
{
MyInfo info = new MyInfo();
info.x=num1;
info.y=num2;
return info;
}
then i use MSSOAP COM for calling web service
<?php
$myCom = new COM("MSSOAP.SoapClient");
$myCom->mssoapinit("http://localhost/WebService1/Service1.asmx?WSDL",
"Service1");
echo $myCom->TestClass(1,2);
?>
it returns a word "OBJECT"
i dont know how can i get this result to show..
and ive tried..
$myCom->TestClass(1,2);
echo $myCom->x;
or
echo com_get($myCom->TestClass(1,2),"x");
it returns..
Warning: Unable to lookup x: Unknown name.
if ... gettype($myCom->TestClass(1,2)); it returns ..object
if ... get_class($myCom->TestClass(1,2)); it returns .. COM
how to get the result to show
please help me
thanks in advance
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife