SOAP: Return object to client

SOAP: Return object to client

am 26.11.2009 13:41:34 von Manoj Singh

--001636c93195cf46440479457e27
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I am implementing the web service through PHP SOAP library.

Actually I want to return the object to the client through web service so
that client can call all the methods of that object.

Please help me out.

Regards,
Manoj

--001636c93195cf46440479457e27--

Re: Return object to client

am 27.11.2009 15:30:26 von Tony Marston

It is not possible to return an object via a web service, only data. You can
create an object in the client process, then populate it with data obtained
from a web service.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org


"Manoj Singh" wrote in message
news:3859a530911260441i1c08dd1agd6826748baa848b6@mail.gmail. com...
> Hi All,
>
> I am implementing the web service through PHP SOAP library.
>
> Actually I want to return the object to the client through web service so
> that client can call all the methods of that object.
>
> Please help me out.
>
> Regards,
> Manoj
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Return object to client

am 27.11.2009 15:47:16 von Robert Cummings

Tony Marston wrote:
> It is not possible to return an object via a web service, only data. You can
> create an object in the client process, then populate it with data obtained
> from a web service.

You can serialize the object and return that via the web service. On the
receiving end it can then be unserialized.

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php