RE: [PHP-DEV] Built-in SOAP based Web Services support(wasRe:PHP 5)
| From: | Lukas Smith | Date: | Fri, 08 Feb 2002 11:03:33 +0000 |
| Subject: | RE: [PHP-DEV] Built-in SOAP based Web Services support(wasRe:PHP 5) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79682@lists.php.net to get a copy of this message | ||
Sounds like a great plan.
WSDL generation is a big plus as well.
One thing about WSDL. Maybe this should be a separate thing ... or
seperateable. WSDL does not require SOAP and is also quite useable with
XML-RPC or actually another other messaging system. So it would be great
if there could be a WSDL extension that can interface with any number of
messaging extensions.
So I am anxious to see the results.
I don't know the names of the authors of the other soap/xml-rpc
implementations but it would probably be a good idea to talk to them as
well. Then again duplicate efforts might result in some interesting
ideas being developed seperately.
Best regards,
Lukas Smith
smith@dybnet.de
_______________________________
DybNet Internet Solutions GbR
Alt Moabit 89
10559 Berlin
Germany
Tel. : +49 30 83 22 50 00
Fax : +49 30 83 22 50 07
www.dybnet.de info@dybnet.de
_______________________________
> -----Original Message-----
> From: brad lafountain [mailto:rodif_bl@yahoo.com]
> Sent: Thursday, February 07, 2002 10:12 PM
> To: php-dev@lists.php.net
> Subject: Re: [PHP-DEV] Built-in SOAP based Web Services
support(wasRe:PHP
> 5)
>
> Hello all who have been following this thread..
>
> I just found it.. i have been working on a php/soap extension
> for a while now.. and it's nearing completion..
> it's is fully functional right now im just adding "options" and
> features. It's damn fast too :) i benchmarked it agains some other
> soap implementations and it beat all of them.
>
> i already have a sourceforge project... no files up yet tho :(
> www.sourceforge.net/projects/phpsoaptoolkit
>
> i will be releasing it probally within the month.. dependign on how
> much time i have.
>
> stuff i want to implement:
> registery - services that get loaded up on startup of php
> full wsdl support - bindign wsdl's to servers and validation of wsdl
on
> client
> also auto generation of wsdl's
>
> here are some short examples of clients and servers
> //simple example
> <?
> $soap_obj = new
SoapObject("http://localhost/soapserver.php","urn:hello");
> $ret = $soap_obj->hello();
> ?>
>
> <?
> $server = new SoapServer("urn:hello");
> $server->addfunction("hello");
> $server->handle();
>
> function hello()
> {
> return "hello from soap";
> }
> ?>
>
> //simple session example
> <?
> $soap_obj = new
SoapObject("http://localhost/soapserver.php","urn:hello");
> $ret = $soap_obj->hello();
> $ret = $soap_obj->hello();
> $ret = $soap_obj->hello();
> $ret = $soap_obj->hello();
> ?>
>
> <?
> $server = new SoapServer("urn:hello");
> $server->addfunction("hello");
> $server->handle();
>
> function hello()
> {
> sesssion_register("counter");
> $counter++;
> return "hello from soap (you called me $counter times);
> }
> ?>
>
>
> //making persistant objects on a remote server
> <?
> $soap_obj = new
SoapObject("http://localhost/soapserver.php","urn:hello");
> $soap_obj->load();
> $array = $soap_obj->get_values();
> ?>
>
> <?
> $server = new SoapServer("urn:hello");
> $server->set_class("test", SOAP_PERSISTANCE_SESSION);
> $server->handle();
>
> class test
> {
> function load()
> {
> for($i = 0; $i < 0; $i++)
> $this->data[] = "data $i";
> }
>
> function get_values()
> {
> return $this->data;
> }
> }
>
> // using xml schema non standerd types
> <?
> $soap_obj = new
SoapObject("http://localhost/soapserver.php","urn:hello");
> $time = $soap_obj->get_date_time();
> ?>
>
> <?
> $server = new SoapServer("urn:hello");
> $server->add_function("get_date_time");
> $server->handle();
>
> function get_date_time()
> {
> return new SoapVar(time(), XSD_DATETIME);
> }
> ?>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php