phpsoaptoolkit-development Mailing List for PHP Soap (Page 4)
Status: Alpha
Brought to you by:
rodif_bl
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(21) |
May
(55) |
Jun
(6) |
Jul
(3) |
Aug
(1) |
Sep
(1) |
Oct
(3) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2004 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2008 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
(2) |
Jul
(2) |
Aug
(1) |
Sep
(7) |
Oct
(7) |
Nov
(26) |
Dec
(32) |
2009 |
Jan
(9) |
Feb
(13) |
Mar
(14) |
Apr
(20) |
May
(39) |
Jun
(21) |
Jul
(26) |
Aug
(9) |
Sep
|
Oct
|
Nov
|
Dec
(8) |
2010 |
Jan
(10) |
Feb
(9) |
Mar
|
Apr
|
May
(3) |
Jun
(3) |
Jul
|
Aug
(2) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: ahristov <ahr...@ic...> - 2002-06-18 00:29:49
|
Hi Serge, this is some kind weird. I don't know what is the cure but I will to this. Unpack php 4.2.1 in new place. get into the main dir - mv configure configure-- After then I will unpack php-soap_0.1.2.tar.gz. In no time I will run ./buildconf After it finishes I will grep the output of ./configure --help ./configure --help | grep soap If there is --enable-soap everything is good if not I cannot help. Best regards, Andrey Hristov |
From: Serge S. <web...@gf...> - 2002-06-17 22:08:18
|
Hi Andrey, Unfortunately, attempts at compiling PHP after running './configure' are still unsuccessful. I have tried both PHP 4.2.0 an 4.2.1, yet I am still unable to run 'make' after './configure'. One thing that I noticed is that the Makefile is not even there, which leads me to believe that the configure script did not generate one. Here is the last thing the configure script says: Generating files checking for working mkdir -p... yes creating config_vars.mk configure: creating ./config.status config.status: creating php4.spec config.status: creating Zend/Makefile config.status: creating main/build-defs.h config.status: creating pear/scripts/pear config.status: creating pear/scripts/phpize config.status: creating pear/scripts/php-config config.status: creating pear/scripts/pearize config.status: creating pear/scripts/phptar config.status: creating TSRM/Makefile config.status: creating main/php_config.h It seems to me that './buildconf' broke something while re-building the script. Normally it would show the "Thank You" text after running './configure', yet it does not show up after the re-build. PS: I tried moving the original './configure' file prior to running './buildconf' Any help would be appreciated. Thanks, Serge Stepanov Enterprise Architect & CTO VisualCaf=E9 Studios -----Original Message----- From: ahristov [mailto:ahr...@ic...]=20 Sent: Monday, June 17, 2002 12:35 PM To: php...@li... Cc: web...@gf... Subject: Re: [PHP-SOAP-DEV] Compilation Problem Do the following. rename 'configure' to something else like 'configure--'. Then run ./buildconf .After buildconf finishes do './configure --help |grep soap '. You must see one line with --enable-soap in it. I have the same problem and fixed it with (re)moving original configure. Best regards, Andrey Hristov |
From: ahristov <ahr...@ic...> - 2002-06-17 20:37:33
|
Do the following. rename 'configure' to something else like 'configure--'. Then run ./buildconf .After buildconf finishes do './configure --help |grep soap '. You must see one line with --enable-soap in it. I have the same problem and fixed it with (re)moving original configure. Best regards, Andrey Hristov 17.6.2002 a. 22:53:16, "Serge Stepanov" <web...@gf...> wrote: > > > From: "Serge Stepanov" <web...@gf...> > > To: <php...@li...> > Subject:[PHP-SOAP-DEV] Compilation Problem > Date: Mon, 17 Jun 2002 11:53:16 -0700 > > > > Hello, > I attempted at compiling SOAP into my PHP installation and have not been > successful. > > After putting the "soap" folder into PHP's source "ext" directory, I ran ./ > buildconf and got the following: > > > buildconf: checking installation... > buildconf: autoconf version 2.50 (ok) > buildconf: automake version 1.4-p4 (ok) > buildconf: libtool version 1.4 (ok) > > rebuilding Makefile templates > aclocal.m4: 1353: `AM_PROG_INSTALL' is obsolete; use `AC_PROG_INSTALL' > aclocal.m4: 1354: `AM_PROG_INSTALL' is obsolete; use `AC_PROG_INSTALL' > aclocal.m4: 1507: `AM_PROG_INSTALL' is obsolete; use `AC_PROG_INSTALL' > > automake: configure.in: installing `Zend/ylwrap' > rebuilding configure > rebuilding main/php_config.h.in > > > Seems to have gone through ok without problems, then I ran ./configure: > > > ./configure --with-mysql --with-gd=/usr/local/lib/gd --with-freetype-dir=/ > usr/local --with-zlib-dir=/usr/local/lib --with-png-dir=/usr/local/lib -- > with-jpeg-dir=/usr/local/include --enable-sockets --prefix=/usr/local/php- > > 4.2.0 --with-apxs=/usr/local/apache/bin/apxs --with-pgsql --enable-gd- > native-ttf --with-jpeg-dir=/usr/local/lib/jpeg-6b --enable-gd-imgstrttf -- > enable-soap > > > Everything seems to go ok, however, when I run "make" I get this: > > > make: *** No targets specified and no makefile found. Stop. > > > Once, however, I was able to get it to compile, but it would find the object > when I tried to create it. > > > Regards, > > Serge Stepanov > > Enterprise Architect & CTO > VisualCafe Studios |
From: Serge S. <web...@gf...> - 2002-06-17 18:52:37
|
Hello, I attempted at compiling SOAP into my PHP installation and have not been successful. After putting the =93soap=94 folder into PHP=92s source =93ext=94 = directory, I ran ./buildconf and got the following: =20 buildconf: checking installation... buildconf: autoconf version 2.50 (ok) buildconf: automake version 1.4-p4 (ok) buildconf: libtool version 1.4 (ok) rebuilding Makefile templates aclocal.m4: 1353: `AM_PROG_INSTALL' is obsolete; use `AC_PROG_INSTALL' aclocal.m4: 1354: `AM_PROG_INSTALL' is obsolete; use `AC_PROG_INSTALL' aclocal.m4: 1507: `AM_PROG_INSTALL' is obsolete; use `AC_PROG_INSTALL' automake: configure.in: installing `Zend/ylwrap' rebuilding configure rebuilding main/php_config.h.in =20 Seems to have gone through ok without problems, then I ran ./configure:=20 =20 ./configure --with-mysql --with-gd=3D/usr/local/lib/gd --with-freetype-dir=3D/usr/local --with-zlib-dir=3D/usr/local/lib --with-png-dir=3D/usr/local/lib --with-jpeg-dir=3D/usr/local/include --enable-sockets --prefix=3D/usr/local/php-4.2.0 --with-apxs=3D/usr/local/apache/bin/apxs --with-pgsql --enable-gd-native-ttf --with-jpeg-dir=3D/usr/local/lib/jpeg-6b --enable-gd-imgstrttf --enable-soap =20 Everything seems to go ok, however, when I run =93make=94 I get this: =20 make: *** No targets specified and no makefile found. Stop. =20 Once, however, I was able to get it to compile, but it would find the object when I tried to create it. =20 Regards, =20 Serge Stepanov Enterprise Architect & CTO VisualCaf=E9 Studios =20 |
From: phpsurf <ph...@if...> - 2002-05-29 13:18:37
|
are you sure it compiled ? i'm working on windows, so I don't have to compile ... but php_soap doesn't load with PHP 4.2.1 whereas it used to work with PHP 4.2.0, because of API version mismatch ... I hope the next php_soap release will fix that ! > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf > Of Mike Potter > Sent: mercredi 29 mai 2002 15:09 > To: php...@li... > Subject: [PHP-SOAP-DEV] Problems installing > > > Hi all: > I'm trying to install soap on my PHP installation (version php-4.2.1). > It compiles and installs fine, but when I go the test page (which is > the example from the site), I get the message *Fatal error*: Cannot > instantiate non-existent class: soapserver in */var/www/html/soap.php* > on line *3* leading me to believe that it hasn't been installed at all. > My compile options look like this: > './configure' '--prefix=/var/tmp/php-root' > '-exec-prefix=/var/tmp/php-root' '--with-exec-dir=/usr/bin' > '--with-config-file-path=/etc' '--with-zlib' '--with-apxs' '--with-gd' > '--with-jpeg' '--with-png' '--with-ttf' '--with-ical=/usr' '--enable-soap' > If I show information from phpinfo(), it doesn't show anything about > soap, except that it was compiled. > Any help is appreciated (I'm not yet subscribed to this list, so > please cc me at mi...@oe...) > Thanks! > Mike > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: Mike P. <mi...@oe...> - 2002-05-29 13:08:46
|
Hi all: I'm trying to install soap on my PHP installation (version php-4.2.1). It compiles and installs fine, but when I go the test page (which is the example from the site), I get the message *Fatal error*: Cannot instantiate non-existent class: soapserver in */var/www/html/soap.php* on line *3* leading me to believe that it hasn't been installed at all. My compile options look like this: './configure' '--prefix=/var/tmp/php-root' '-exec-prefix=/var/tmp/php-root' '--with-exec-dir=/usr/bin' '--with-config-file-path=/etc' '--with-zlib' '--with-apxs' '--with-gd' '--with-jpeg' '--with-png' '--with-ttf' '--with-ical=/usr' '--enable-soap' If I show information from phpinfo(), it doesn't show anything about soap, except that it was compiled. Any help is appreciated (I'm not yet subscribed to this list, so please cc me at mi...@oe...) Thanks! Mike |
From: brad l. <rod...@ya...> - 2002-05-28 07:22:28
|
Hello, Yeah I plan on releasing something this week with some fixes and some new features. I'll keep you posted on dates/ new features. - brad --- phpsurf <ph...@if...> wrote: > Hi brad > > do you plan to launch the next release of php_soap, including the bugs > you've already fixed ? > another reason why I'm intersted in this new release, is that I've upgraded > to PHP 4.2.1 and your extension doesn't load anymore, because of some API > version number mismatch ... > > thanks > > > ______________________________________________________________________________ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |
From: phpsurf <ph...@if...> - 2002-05-27 13:34:40
|
Hi brad do you plan to launch the next release of php_soap, including the bugs you've already fixed ? another reason why I'm intersted in this new release, is that I've upgraded to PHP 4.2.1 and your extension doesn't load anymore, because of some API version number mismatch ... thanks ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: brad l. <rod...@ya...> - 2002-05-15 14:00:19
|
Well ill try and make the SoapObject "sessionable" next release. It would be eaiser if __wakeup and __sleep got called to the SoapObject. - Brad --- andrey <ahr...@ic...> wrote: > I want persistent client object because I want to access a soap service and > to have a live session on the remote part between requests of client part. > So I do a site which uses SOAP remote service for authentication and SOAP > remote service for accounting the time a employee has spent in the office. > There are 2 classes -> CAuthenticate & CPresence in 2 files. When users logs > in into the system by using CAuthenticate a session is created and some > stuff about the user is stored there(caching). When an user wants to state > that it is in working time method CPresence::presence_login($comment) is > called, and all info about the user is gotten from the session but I can > keep the session_id only(as far as I know) with keeping SoapObject in client > part. There is a little hack(because of lack of private vars) - on the > client part I modificate $client->location & $client->uri to get it work > with another service. I've no such warning message on my box but this is > because the error_reporting level is set to something strange. > > Hope that clears what I do. > > Andrey > ----- Original Message ----- > From: "brad lafountain" <rod...@ya...> > To: "andrey" <ahr...@ic...> > Cc: <php...@li...> > Sent: Monday, May 13, 2002 8:22 PM > Subject: Re: [PHP-SOAP-DEV] bug storing the SoapObject in session > > > > Yeah this basically is the problem... > > > > > > But the bigger problem is that __wakeup and __sleep don't get passed to > > overloaded 'c' objects (which is what SoapObject is). I posted a patch a > while > > ago along with the ability to serailzie java objects. It never got > patched. > > > > > > But besides that the example up on the website was ment to show you the > > perstance server objects not a perstant client objects. > > > > > > Hope this helps > > > > - Brad > > > > --- andrey <ahr...@ic...> wrote: > > > I think I know what is the problem. > > > When object is serialiazed all it's properties are serialized but some > > > properties have no meaning after serialization. For example a class > wrapper > > > for DB connection may have property $link (resource of type mysql) but > this > > > link has meaning only on the page where it is created. If we serialize > $link > > > there will be problem when deserialized. I don't know what is the > solution > > > for module but in userspace this is solvable with 2 methods > > > __sleep(), __wakeup(). In case you don't know about them I'll explain. > When > > > PHP wants to serialize an object it tries to execute __sleep() if mehtod > > > with such name executes. PHP wants to receive an array with names > (strings) > > > of properties that have to be serialized. Probably if there is no > __sleep() > > > all properties are serialized. On the other hand when PHP deserializes > an > > > object it tries to call __wakeup(). __wakeup() is used in case some > > > initializations are needed on object recreation - in our case (PHP-SOAP) > > > httpurl is of type resource and has to be created in __wakeup() and not > to > > > be serialized - so __sleep() has to return an array with names where > there > > > is no element "httpurl". > > > > > > Regards, > > > Andrey > > > > > > ----- Original Message ----- > > > From: "phpsurf" <ph...@if...> > > > To: "brad lafountain" <rod...@ya...>; > > > <php...@li...> > > > Sent: Friday, May 10, 2002 1:12 PM > > > Subject: [PHP-SOAP-DEV] bug storing the SoapObject in session > > > > > > > > > > Hi > > > > > > > > I tried something with your 4th example : session > > > > > > > > your example shows haow to maintain a session on the server side > through > > > > serveral consecutive calls to method of the SoapObject on the client > side, > > > > but inside the same script. > > > > > > > > my idea was to maintain this soap-server session through several calls > to > > > > the soap-client script. > > > > > > > > so I simply tried to put the SoapObject (client side) in session. > > > > > > > > here is my new session-client-src.php script: > > > > > > > > ---------------------------------------------------- > > > > <? > > > > session_start(); > > > > session_register("session"); > > > > > > > > if(!isset($session)) { > > > > echo "create Soap Client\n"; > > > > $session = new > > > > > > > > SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/session-ser > > > > ver-src.php", "urn:Session"); > > > > } > > > > > > > > echo "counter:\n"; > > > > > > > > echo $session->inc() . "\n"; > > > > echo $session->inc() . "\n"; > > > > ?> > > > > ---------------------------------------------------- > > > > > > > > The 1st time I call this script, I get the following result : > > > > > > > > ---------------------------------------------------- > > > > create Soap Client > > > > counter: > > > > 0 > > > > 1 > > > > ---------------------------------------------------- > > > > > > > > > > > > But the 2nd time I call this script, I get the following result which > is > > > > fine (the counter is well incremented), except for the warning :) > > > > > > > > ---------------------------------------------------- > > > > counter: > > > > <br /> > > > > <b>Warning</b>: (null)(): supplied argument is not a valid httpurl > > > resource > > > > in > > > <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> > > > > on line <b>12</b><br /> > > > > 2 > > > > 3 > > > > ---------------------------------------------------- > > > > > > > > hope you will find out the bug ! > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________ > > > __ > > > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > > > > > > > > > _______________________________________________________________ > > > > > > > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > > > > the hardware. You get the recognition. Email Us: > ban...@so... > > > > _______________________________________________ > > > > Phpsoaptoolkit-development mailing list > > > > Php...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > the hardware. You get the recognition. Email Us: ban...@so... > > _______________________________________________ > > Phpsoaptoolkit-development mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com |
From: andrey <ahr...@ic...> - 2002-05-15 13:24:57
|
Not sure but as far as I know instance of the class is never created. = All methods have to be static by nature. So the constructor is never = called. But if you do some kind of persistence then you can call the constructor = explicitly. Andrey ----- Original Message -----=20 From: Jean-Charles Preaux=20 To: php...@li... ; = php...@li...=20 Sent: Monday, May 13, 2002 4:06 PM Subject: [PHP-SOAP-DEV] Re: setClass newbie question Hye In fact, i tried the sessions object samples and it works fine but my trouble is that the class which i bind o the SoapServer has a = constructor and can't create a new object. How can i do ? thanks Jean-Charles Preaux ----- Original Message -----=20 From: Jean-Charles Preaux=20 To: php...@li...=20 Sent: Friday, May 10, 2002 10:38 AM Subject: setClass newbie question hello I try to use the setClass method but i don't understand how it = works. i have a php class called 'xslt', when i want to use it, i do : <?php require ('class.xslt.php'); $test =3D new xslt ('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); ?> then with Soap extension i did :=20 /* server.php */ <?php require ("class.xslt.php"); $server =3D new SoapServer("urn:xslt"); $server->setClass('xslt');=20 $server->handle(); ?> /* client.php */ <?php=20 error_reporting(E_ALL); $test =3D new SoapObject("http://localhost:8080/xslt_server.php", = "urn:xslt");=20 $test->xslt('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); if($test->__isFault()) var_dump($test->__getFault()) ?>=20 But it doesn't work and no error returned. My question is : Did i do a mistake?, How can i use this method ? Thanks you for your advices Jean-Charles Preaux http://analogx.dyndns.org icq://125624822 |
From: andrey <ahr...@ic...> - 2002-05-15 13:21:57
|
I want persistent client object because I want to access a soap service and to have a live session on the remote part between requests of client part. So I do a site which uses SOAP remote service for authentication and SOAP remote service for accounting the time a employee has spent in the office. There are 2 classes -> CAuthenticate & CPresence in 2 files. When users logs in into the system by using CAuthenticate a session is created and some stuff about the user is stored there(caching). When an user wants to state that it is in working time method CPresence::presence_login($comment) is called, and all info about the user is gotten from the session but I can keep the session_id only(as far as I know) with keeping SoapObject in client part. There is a little hack(because of lack of private vars) - on the client part I modificate $client->location & $client->uri to get it work with another service. I've no such warning message on my box but this is because the error_reporting level is set to something strange. Hope that clears what I do. Andrey ----- Original Message ----- From: "brad lafountain" <rod...@ya...> To: "andrey" <ahr...@ic...> Cc: <php...@li...> Sent: Monday, May 13, 2002 8:22 PM Subject: Re: [PHP-SOAP-DEV] bug storing the SoapObject in session > Yeah this basically is the problem... > > > But the bigger problem is that __wakeup and __sleep don't get passed to > overloaded 'c' objects (which is what SoapObject is). I posted a patch a while > ago along with the ability to serailzie java objects. It never got patched. > > > But besides that the example up on the website was ment to show you the > perstance server objects not a perstant client objects. > > > Hope this helps > > - Brad > > --- andrey <ahr...@ic...> wrote: > > I think I know what is the problem. > > When object is serialiazed all it's properties are serialized but some > > properties have no meaning after serialization. For example a class wrapper > > for DB connection may have property $link (resource of type mysql) but this > > link has meaning only on the page where it is created. If we serialize $link > > there will be problem when deserialized. I don't know what is the solution > > for module but in userspace this is solvable with 2 methods > > __sleep(), __wakeup(). In case you don't know about them I'll explain. When > > PHP wants to serialize an object it tries to execute __sleep() if mehtod > > with such name executes. PHP wants to receive an array with names (strings) > > of properties that have to be serialized. Probably if there is no __sleep() > > all properties are serialized. On the other hand when PHP deserializes an > > object it tries to call __wakeup(). __wakeup() is used in case some > > initializations are needed on object recreation - in our case (PHP-SOAP) > > httpurl is of type resource and has to be created in __wakeup() and not to > > be serialized - so __sleep() has to return an array with names where there > > is no element "httpurl". > > > > Regards, > > Andrey > > > > ----- Original Message ----- > > From: "phpsurf" <ph...@if...> > > To: "brad lafountain" <rod...@ya...>; > > <php...@li...> > > Sent: Friday, May 10, 2002 1:12 PM > > Subject: [PHP-SOAP-DEV] bug storing the SoapObject in session > > > > > > > Hi > > > > > > I tried something with your 4th example : session > > > > > > your example shows haow to maintain a session on the server side through > > > serveral consecutive calls to method of the SoapObject on the client side, > > > but inside the same script. > > > > > > my idea was to maintain this soap-server session through several calls to > > > the soap-client script. > > > > > > so I simply tried to put the SoapObject (client side) in session. > > > > > > here is my new session-client-src.php script: > > > > > > ---------------------------------------------------- > > > <? > > > session_start(); > > > session_register("session"); > > > > > > if(!isset($session)) { > > > echo "create Soap Client\n"; > > > $session = new > > > > > SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/session-ser > > > ver-src.php", "urn:Session"); > > > } > > > > > > echo "counter:\n"; > > > > > > echo $session->inc() . "\n"; > > > echo $session->inc() . "\n"; > > > ?> > > > ---------------------------------------------------- > > > > > > The 1st time I call this script, I get the following result : > > > > > > ---------------------------------------------------- > > > create Soap Client > > > counter: > > > 0 > > > 1 > > > ---------------------------------------------------- > > > > > > > > > But the 2nd time I call this script, I get the following result which is > > > fine (the counter is well incremented), except for the warning :) > > > > > > ---------------------------------------------------- > > > counter: > > > <br /> > > > <b>Warning</b>: (null)(): supplied argument is not a valid httpurl > > resource > > > in > > <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> > > > on line <b>12</b><br /> > > > 2 > > > 3 > > > ---------------------------------------------------- > > > > > > hope you will find out the bug ! > > > > > > > > > > > > > > ____________________________________________________________________________ > > __ > > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > > > > > _______________________________________________________________ > > > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > > the hardware. You get the recognition. Email Us: ban...@so... > > > _______________________________________________ > > > Phpsoaptoolkit-development mailing list > > > Php...@li... > > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > > > > > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > |
From: phpsurf <ph...@if...> - 2002-05-13 20:48:19
|
> -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf > Of brad lafountain > Sent: lundi 13 mai 2002 19:22 > To: andrey > Cc: php...@li... > Subject: Re: [PHP-SOAP-DEV] bug storing the SoapObject in session > > > Yeah this basically is the problem... > > > But the bigger problem is that __wakeup and __sleep don't get passed to > overloaded 'c' objects (which is what SoapObject is). I posted a > patch a while > ago along with the ability to serailzie java objects. It never > got patched. > > > But besides that the example up on the website was ment to show you the > perstance server objects not a perstant client objects. > That's right, I knew that ! just wanted to get the most of the extension :) don't you have an idea on how to do that ? indead the main problem is to find a way to rebuild (in the second client load) the uri to the server re-using the same cookies variables ... so the session will be propagated on the soap-server side through the session on the soap-client side ... hope youl'll find something ! > > Hope this helps > > - Brad > > --- andrey <ahr...@ic...> wrote: > > I think I know what is the problem. > > When object is serialiazed all it's properties are serialized but some > > properties have no meaning after serialization. For example a > class wrapper > > for DB connection may have property $link (resource of type > mysql) but this > > link has meaning only on the page where it is created. If we > serialize $link > > there will be problem when deserialized. I don't know what is > the solution > > for module but in userspace this is solvable with 2 methods > > __sleep(), __wakeup(). In case you don't know about them I'll > explain. When > > PHP wants to serialize an object it tries to execute __sleep() if mehtod > > > with such name executes. PHP wants to receive an array with > > names (strings) > > > of properties that have to be serialized. Probably if there is > > no __sleep() > > > all properties are serialized. On the other hand when PHP > > deserializes an > > > object it tries to call __wakeup(). __wakeup() is used in case some > > > initializations are needed on object recreation - in our case > (PHP-SOAP) > > > httpurl is of type resource and has to be created in __wakeup() > > and not to > > > be serialized - so __sleep() has to return an array with names > > where there > > > is no element "httpurl". > > > > > > Regards, > > > Andrey > > > > > > ----- Original Message ----- > > > From: "phpsurf" <ph...@if...> > > > To: "brad lafountain" <rod...@ya...>; > > > <php...@li...> > > > Sent: Friday, May 10, 2002 1:12 PM > > > Subject: [PHP-SOAP-DEV] bug storing the SoapObject in session > > > > > > > > > > Hi > > > > > > > > I tried something with your 4th example : session > > > > > > > > your example shows haow to maintain a session on the server > > side through > > > > serveral consecutive calls to method of the SoapObject on the > > client side, > > > > but inside the same script. > > > > > > > > my idea was to maintain this soap-server session through > > several calls to > > > > the soap-client script. > > > > > > > > so I simply tried to put the SoapObject (client side) in session. > > > > > > > > here is my new session-client-src.php script: > > > > > > > > ---------------------------------------------------- > > > > <? > > > > session_start(); > > > > session_register("session"); > > > > > > > > if(!isset($session)) { > > > > echo "create Soap Client\n"; > > > > $session = new > > > > > > > > > SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/s > > ession-ser > > > > ver-src.php", "urn:Session"); > > > > } > > > > > > > > echo "counter:\n"; > > > > > > > > echo $session->inc() . "\n"; > > > > echo $session->inc() . "\n"; > > > > ?> > > > > ---------------------------------------------------- > > > > > > > > The 1st time I call this script, I get the following result : > > > > > > > > ---------------------------------------------------- > > > > create Soap Client > > > > counter: > > > > 0 > > > > 1 > > > > ---------------------------------------------------- > > > > > > > > > > > > But the 2nd time I call this script, I get the following > > result which is > > > > fine (the counter is well incremented), except for the warning :) > > > > > > > > ---------------------------------------------------- > > > > counter: > > > > <br /> > > > > <b>Warning</b>: (null)(): supplied argument is not a valid httpurl > > > resource > > > > in > > > > <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> > > > > on line <b>12</b><br /> > > > > 2 > > > > 3 > > > > ---------------------------------------------------- > > > > > > > > hope you will find out the bug ! > > > > > > > > > > > > > > > > > > > > > __________________________________________________________________ > > __________ > > > __ > > > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > > > > > > > > > _______________________________________________________________ > > > > > > > > Have big pipes? SourceForge.net is looking for download > > mirrors. We supply > > > > the hardware. You get the recognition. Email Us: > > ban...@so... > > > > _______________________________________________ > > > > Phpsoaptoolkit-development mailing list > > > > Php...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download > mirrors. We supply > > the hardware. You get the recognition. Email Us: > ban...@so... > > _______________________________________________ > > Phpsoaptoolkit-development mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: brad l. <rod...@ya...> - 2002-05-13 17:22:29
|
Yeah this basically is the problem... But the bigger problem is that __wakeup and __sleep don't get passed to overloaded 'c' objects (which is what SoapObject is). I posted a patch a while ago along with the ability to serailzie java objects. It never got patched. But besides that the example up on the website was ment to show you the perstance server objects not a perstant client objects. Hope this helps - Brad --- andrey <ahr...@ic...> wrote: > I think I know what is the problem. > When object is serialiazed all it's properties are serialized but some > properties have no meaning after serialization. For example a class wrapper > for DB connection may have property $link (resource of type mysql) but this > link has meaning only on the page where it is created. If we serialize $link > there will be problem when deserialized. I don't know what is the solution > for module but in userspace this is solvable with 2 methods > __sleep(), __wakeup(). In case you don't know about them I'll explain. When > PHP wants to serialize an object it tries to execute __sleep() if mehtod > with such name executes. PHP wants to receive an array with names (strings) > of properties that have to be serialized. Probably if there is no __sleep() > all properties are serialized. On the other hand when PHP deserializes an > object it tries to call __wakeup(). __wakeup() is used in case some > initializations are needed on object recreation - in our case (PHP-SOAP) > httpurl is of type resource and has to be created in __wakeup() and not to > be serialized - so __sleep() has to return an array with names where there > is no element "httpurl". > > Regards, > Andrey > > ----- Original Message ----- > From: "phpsurf" <ph...@if...> > To: "brad lafountain" <rod...@ya...>; > <php...@li...> > Sent: Friday, May 10, 2002 1:12 PM > Subject: [PHP-SOAP-DEV] bug storing the SoapObject in session > > > > Hi > > > > I tried something with your 4th example : session > > > > your example shows haow to maintain a session on the server side through > > serveral consecutive calls to method of the SoapObject on the client side, > > but inside the same script. > > > > my idea was to maintain this soap-server session through several calls to > > the soap-client script. > > > > so I simply tried to put the SoapObject (client side) in session. > > > > here is my new session-client-src.php script: > > > > ---------------------------------------------------- > > <? > > session_start(); > > session_register("session"); > > > > if(!isset($session)) { > > echo "create Soap Client\n"; > > $session = new > > > SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/session-ser > > ver-src.php", "urn:Session"); > > } > > > > echo "counter:\n"; > > > > echo $session->inc() . "\n"; > > echo $session->inc() . "\n"; > > ?> > > ---------------------------------------------------- > > > > The 1st time I call this script, I get the following result : > > > > ---------------------------------------------------- > > create Soap Client > > counter: > > 0 > > 1 > > ---------------------------------------------------- > > > > > > But the 2nd time I call this script, I get the following result which is > > fine (the counter is well incremented), except for the warning :) > > > > ---------------------------------------------------- > > counter: > > <br /> > > <b>Warning</b>: (null)(): supplied argument is not a valid httpurl > resource > > in > <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> > > on line <b>12</b><br /> > > 2 > > 3 > > ---------------------------------------------------- > > > > hope you will find out the bug ! > > > > > > > > > ____________________________________________________________________________ > __ > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > the hardware. You get the recognition. Email Us: ban...@so... > > _______________________________________________ > > Phpsoaptoolkit-development mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com |
From: Jean-Charles P. <jc....@wa...> - 2002-05-13 13:06:02
|
Hye In fact, i tried the sessions object samples and it works fine but my trouble is that the class which i bind o the SoapServer has a = constructor and can't create a new object. How can i do ? thanks Jean-Charles Preaux ----- Original Message -----=20 From: Jean-Charles Preaux=20 To: php...@li...=20 Sent: Friday, May 10, 2002 10:38 AM Subject: setClass newbie question hello I try to use the setClass method but i don't understand how it works. i have a php class called 'xslt', when i want to use it, i do : <?php require ('class.xslt.php'); $test =3D new xslt ('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); ?> then with Soap extension i did :=20 /* server.php */ <?php require ("class.xslt.php"); $server =3D new SoapServer("urn:xslt"); $server->setClass('xslt');=20 $server->handle(); ?> /* client.php */ <?php=20 error_reporting(E_ALL); $test =3D new SoapObject("http://localhost:8080/xslt_server.php", = "urn:xslt");=20 $test->xslt('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); if($test->__isFault()) var_dump($test->__getFault()) ?>=20 But it doesn't work and no error returned. My question is : Did i do a mistake?, How can i use this method ? Thanks you for your advices Jean-Charles Preaux http://analogx.dyndns.org icq://125624822 |
From: andrey <ahr...@ic...> - 2002-05-13 09:42:33
|
I think I know what is the problem. When object is serialiazed all it's properties are serialized but some properties have no meaning after serialization. For example a class wrapper for DB connection may have property $link (resource of type mysql) but this link has meaning only on the page where it is created. If we serialize $link there will be problem when deserialized. I don't know what is the solution for module but in userspace this is solvable with 2 methods __sleep(), __wakeup(). In case you don't know about them I'll explain. When PHP wants to serialize an object it tries to execute __sleep() if mehtod with such name executes. PHP wants to receive an array with names (strings) of properties that have to be serialized. Probably if there is no __sleep() all properties are serialized. On the other hand when PHP deserializes an object it tries to call __wakeup(). __wakeup() is used in case some initializations are needed on object recreation - in our case (PHP-SOAP) httpurl is of type resource and has to be created in __wakeup() and not to be serialized - so __sleep() has to return an array with names where there is no element "httpurl". Regards, Andrey ----- Original Message ----- From: "phpsurf" <ph...@if...> To: "brad lafountain" <rod...@ya...>; <php...@li...> Sent: Friday, May 10, 2002 1:12 PM Subject: [PHP-SOAP-DEV] bug storing the SoapObject in session > Hi > > I tried something with your 4th example : session > > your example shows haow to maintain a session on the server side through > serveral consecutive calls to method of the SoapObject on the client side, > but inside the same script. > > my idea was to maintain this soap-server session through several calls to > the soap-client script. > > so I simply tried to put the SoapObject (client side) in session. > > here is my new session-client-src.php script: > > ---------------------------------------------------- > <? > session_start(); > session_register("session"); > > if(!isset($session)) { > echo "create Soap Client\n"; > $session = new > SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/session-ser > ver-src.php", "urn:Session"); > } > > echo "counter:\n"; > > echo $session->inc() . "\n"; > echo $session->inc() . "\n"; > ?> > ---------------------------------------------------- > > The 1st time I call this script, I get the following result : > > ---------------------------------------------------- > create Soap Client > counter: > 0 > 1 > ---------------------------------------------------- > > > But the 2nd time I call this script, I get the following result which is > fine (the counter is well incremented), except for the warning :) > > ---------------------------------------------------- > counter: > <br /> > <b>Warning</b>: (null)(): supplied argument is not a valid httpurl resource > in <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> > on line <b>12</b><br /> > 2 > 3 > ---------------------------------------------------- > > hope you will find out the bug ! > > > > ____________________________________________________________________________ __ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > |
From: andrey <ahr...@ic...> - 2002-05-10 10:10:12
|
Ok. I'll give it a try as well as the example from your previous post(on other subject). Andrey ----- Original Message ----- From: "phpsurf" <ph...@if...> To: "andrey" <ahr...@ic...>; <php...@li...> Sent: Friday, May 10, 2002 1:18 PM Subject: RE: [PHP-SOAP-DEV] Problem with session example . Not working. > hi > > there is a little error in this example on the web site : > in the session-server-src.php, you need to replace SoapObject with > SoapServer ... certainly some too fast Copy/Paste ! :) > and then it should work ... > > > -----Original Message----- > > From: php...@li... > > [mailto:php...@li...]On Behalf > > Of andrey > > Sent: vendredi 10 mai 2002 11:19 > > To: php...@li... > > Subject: [PHP-SOAP-DEV] Problem with session example . Not working. > > > > > > I've tried with no success the example from the site about sessions - > > server & client. The sessions are created in the server but and the > > session_id is equal among 3 requests but the server returns NULL. Why - I > > don't have an idea. I looked at the source at saw that there are some kind > > of session handling but only that - i'm not C guru. Obviously the > > session_id > > is caried between 3 requests but why NULL is received instead of 1,2,3. > > Unfortunately I need this feature and my temporal solution is > > CSession class > > I wrote last night which is a wrapper for sessions with 4 methods > > (constructor,get_var($name),set_var($name,$val), get_sid()). I've > > written 2 > > versions - at the moment I'm working with one that serialize in TEXT field > > (mysql). The second one uses session_*() of PHP but does not work > > as I said > > above. > > > > Looking forward for some advice. > > > > Andrey > > > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > the hardware. You get the recognition. Email Us: ban...@so... > > _______________________________________________ > > Phpsoaptoolkit-development mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > ____________________________________________________________________________ __ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > > |
From: phpsurf <ph...@if...> - 2002-05-10 10:07:57
|
hi there is a little error in this example on the web site : in the session-server-src.php, you need to replace SoapObject with SoapServer ... certainly some too fast Copy/Paste ! :) and then it should work ... > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf > Of andrey > Sent: vendredi 10 mai 2002 11:19 > To: php...@li... > Subject: [PHP-SOAP-DEV] Problem with session example . Not working. > > > I've tried with no success the example from the site about sessions - > server & client. The sessions are created in the server but and the > session_id is equal among 3 requests but the server returns NULL. Why - I > don't have an idea. I looked at the source at saw that there are some kind > of session handling but only that - i'm not C guru. Obviously the > session_id > is caried between 3 requests but why NULL is received instead of 1,2,3. > Unfortunately I need this feature and my temporal solution is > CSession class > I wrote last night which is a wrapper for sessions with 4 methods > (constructor,get_var($name),set_var($name,$val), get_sid()). I've > written 2 > versions - at the moment I'm working with one that serialize in TEXT field > (mysql). The second one uses session_*() of PHP but does not work > as I said > above. > > Looking forward for some advice. > > Andrey > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: phpsurf <ph...@if...> - 2002-05-10 10:01:20
|
Hi I tried something with your 4th example : session your example shows haow to maintain a session on the server side through serveral consecutive calls to method of the SoapObject on the client side, but inside the same script. my idea was to maintain this soap-server session through several calls to the soap-client script. so I simply tried to put the SoapObject (client side) in session. here is my new session-client-src.php script: ---------------------------------------------------- <? session_start(); session_register("session"); if(!isset($session)) { echo "create Soap Client\n"; $session = new SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/session-ser ver-src.php", "urn:Session"); } echo "counter:\n"; echo $session->inc() . "\n"; echo $session->inc() . "\n"; ?> ---------------------------------------------------- The 1st time I call this script, I get the following result : ---------------------------------------------------- create Soap Client counter: 0 1 ---------------------------------------------------- But the 2nd time I call this script, I get the following result which is fine (the counter is well incremented), except for the warning :) ---------------------------------------------------- counter: <br /> <b>Warning</b>: (null)(): supplied argument is not a valid httpurl resource in <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> on line <b>12</b><br /> 2 3 ---------------------------------------------------- hope you will find out the bug ! ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: phpsurf <ph...@if...> - 2002-05-10 09:23:58
|
hi due to the SOAP mechanism, every time you call a new method on your SoapObject (client side), it performs a new HTTP request to the soap server. so if you wanna be able to call several methods on the same object (construct, then trnasform, then get the result back) then you need to make your object persistent on the server side. to do that, you can find an example here : http://phpsoaptoolkit.sourceforge.net/phpsoap/guide/samples/session_object/ then your server script should be something like that : /* server.php */ <?php require ("class.xslt.php"); $server = new SoapServer("urn:xslt"); $server->setClass('xslt'); $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->handle(); ?> hope this will help ... -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of Jean-Charles Preaux Sent: vendredi 10 mai 2002 10:39 To: php...@li... Subject: [PHP-SOAP-DEV] setClass newbie question hello I try to use the setClass method but i don't understand how it works. i have a php class called 'xslt', when i want to use it, i do : <?php require ('class.xslt.php'); $test = new xslt ('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); ?> then with Soap extension i did : /* server.php */ <?php require ("class.xslt.php"); $server = new SoapServer("urn:xslt"); $server->setClass('xslt'); $server->handle(); ?> /* client.php */ <?php error_reporting(E_ALL); $test = new SoapObject("http://localhost:8080/xslt_server.php", "urn:xslt"); $test->xslt('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); if($test->__isFault()) var_dump($test->__getFault()) ?> But it doesn't work and no error returned. My question is : Did i do a mistake?, How can i use this method ? Thanks you for your advices Jean-Charles Preaux http://analogx.dyndns.org icq://125624822 ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: andrey <ahr...@ic...> - 2002-05-10 09:20:10
|
I've tried with no success the example from the site about sessions - server & client. The sessions are created in the server but and the session_id is equal among 3 requests but the server returns NULL. Why - I don't have an idea. I looked at the source at saw that there are some kind of session handling but only that - i'm not C guru. Obviously the session_id is caried between 3 requests but why NULL is received instead of 1,2,3. Unfortunately I need this feature and my temporal solution is CSession class I wrote last night which is a wrapper for sessions with 4 methods (constructor,get_var($name),set_var($name,$val), get_sid()). I've written 2 versions - at the moment I'm working with one that serialize in TEXT field (mysql). The second one uses session_*() of PHP but does not work as I said above. Looking forward for some advice. Andrey |
From: phpsurf <ph...@if...> - 2002-05-10 09:14:49
|
great ! good news :) > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf > Of brad lafountain > Sent: vendredi 10 mai 2002 03:00 > To: phpsurf; php...@li... > Subject: [PHP-SOAP-DEV] RE: bug with WSDL: missing operation namespace > in the soap request > > > Yeah that's sitll in there.. i fixed it in cvs... Ive added a few > options... > I'll will probally have another small release soon. I have been > working on the > mapping stuff that has been discussed on the list. > > > I had to make changes to domxml and i have another awesome idea that will > allow php to be more of an aplication server. A php_soap > application server. > Don't get discouraged im still working it as much as i can. > > - brad > > --- phpsurf <ph...@if...> wrote: > > hi > > > > I've been testing this again with the babelfish and google > services ... and > > I'm afraid the bug is still here ! > > Don't know if the fix had been included in your second release > or not yet > > ... > > > > > > > -----Original Message----- > > > From: brad lafountain [mailto:rod...@ya...] > > > Sent: lundi 29 avril 2002 23:12 > > > To: phpsurf; php...@li... > > > Subject: Re: bug with WSDL: missing operation namespace in the soap > > > request > > > > > > > > > Sweet.. first bug! :) > > > > > > I thought i got rid of thoes damn temps... I'll commit a fix tonite. > > > > > > Are you using windows or linux? if you are using linux then you > > > can just get > > > the cvs otherwise ill have to give you a bindary to keep on > testing with. > > > > > > - Brad > > > > > > --- phpsurf <ph...@if...> wrote: > > > > hi > > > > > > > > I'm testing the client with a wsdl ... > > > > case sensitivity and parameter names seem to work fine with the > > > wsdl :) good > > > > point. > > > > > > > > but I got a bug with the following WSDL : > > > > > > > > > > > ------------------------------------------------------------------ > > > ---------- > > > > -- > > > > <?xml version="1.0"?> > > > > > > > > <definitions name="BabelFishService" > > > > xmlns:tns="http://www.xmethods.net/sd/BabelFishService.wsdl" > > > > > targetNamespace="http://www.xmethods.net/sd/BabelFishService.wsdl" > > > > xmlns:xsd="http://www.w3.org/1999/XMLSchema" > > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > > > xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > > > > > <message name="BabelFishRequest"> > > > > <part name="translationmode" type="xsd:string"/> > > > > <part name="sourcedata" type="xsd:string"/> > > > > </message> > > > > > > > > <message name="BabelFishResponse"> > > > > <part name="return" type="xsd:string"/> > > > > </message> > > > > > > > > <portType name="BabelFishPortType"> > > > > <operation name="BabelFish"> > > > > <input message="tns:BabelFishRequest" > > > name="BabelFish"/> > > > > <output message="tns:BabelFishResponse" > > > name="BabelFishResponse"/> > > > > </operation> > > > > </portType> > > > > > > > > <binding name="BabelFishBinding" > type="tns:BabelFishPortType"> > > > > <soap:binding style="rpc" > > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > <operation name="BabelFish"> > > > > <soap:operation > > > soapAction="urn:xmethodsBabelFish#BabelFish"/> > > > > <input> > > > > <soap:body use="encoded" > > > namespace="urn:xmethodsBabelFish" > > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > > > </input> > > > > <output> > > > > <soap:body use="encoded" > > > namespace="urn:xmethodsBabelFish" > > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > > > </output> > > > > </operation> > > > > </binding> > > > > > > > > <service name="BabelFish"> > > > > <documentation>Translates text of up to 5k in > > > length, between a variety of > > > > languages.</documentation> > > > > <port name="BabelFishPort" > binding="tns:BabelFishBinding"> > > > > <soap:address > > > > location="http://services.xmethods.net:80/perl/soaplite.cgi"/> > > > > </port> > > > > </service> > > > > > > > > </definitions> > > > > > > > ------------------------------------------------------------------ > > > ---------- > > > > -- > > > > > > > > the message received by the server is : > > > > see the ***FIXME*** ! > > > > > > > > > > > ------------------------------------------------------------------ > > > ---------- > > > > -- > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <SOAP-ENV:Envelope > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > > > > > <SOAP-ENV:Body> > > > > <BabelFish xmlns="***FIXME***"> > > > > <translationmode xsi:type="xsd:string">en_fr</translationmode> > > > > <sourcedata xsi:type="xsd:string">some pretty text to > translate > > > > !</sourcedata> > > > > </BabelFish> > > > > </SOAP-ENV:Body> > > > > > > > > </SOAP-ENV:Envelope> > > > > > > > ------------------------------------------------------------------ > > > ---------- > > > > -- > > > > > > > > > > > > > > > > > > > __________________________________________________________________ > > > ____________ > > > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Health - your guide to health and wellness > > > http://health.yahoo.com > > > > > > > __________________________________________________________________ > ____________ > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Shopping - Mother's Day is May 12th! > http://shopping.yahoo.com > > > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: Jean-Charles P. <jc....@wa...> - 2002-05-10 08:47:38
|
hello I try to use the setClass method but i don't understand how it works. i have a php class called 'xslt', when i want to use it, i do : <?php require ('class.xslt.php'); $test =3D new xslt ('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); ?> then with Soap extension i did :=20 /* server.php */ <?php require ("class.xslt.php"); $server =3D new SoapServer("urn:xslt"); $server->setClass('xslt');=20 $server->handle(); ?> /* client.php */ <?php=20 error_reporting(E_ALL); $test =3D new SoapObject("http://localhost:8080/xslt_server.php", = "urn:xslt");=20 $test->xslt('test.xml', 'test.xsl', TRUE); $test->transform(); echo $test->output(); if($test->__isFault()) var_dump($test->__getFault()) ?>=20 But it doesn't work and no error returned. My question is : Did i do a mistake?, How can i use this method ? Thanks you for your advices Jean-Charles Preaux http://analogx.dyndns.org icq://125624822 |
From: brad l. <rod...@ya...> - 2002-05-10 00:59:56
|
Yeah that's sitll in there.. i fixed it in cvs... Ive added a few options... I'll will probally have another small release soon. I have been working on the mapping stuff that has been discussed on the list. I had to make changes to domxml and i have another awesome idea that will allow php to be more of an aplication server. A php_soap application server. Don't get discouraged im still working it as much as i can. - brad --- phpsurf <ph...@if...> wrote: > hi > > I've been testing this again with the babelfish and google services ... and > I'm afraid the bug is still here ! > Don't know if the fix had been included in your second release or not yet > ... > > > > -----Original Message----- > > From: brad lafountain [mailto:rod...@ya...] > > Sent: lundi 29 avril 2002 23:12 > > To: phpsurf; php...@li... > > Subject: Re: bug with WSDL: missing operation namespace in the soap > > request > > > > > > Sweet.. first bug! :) > > > > I thought i got rid of thoes damn temps... I'll commit a fix tonite. > > > > Are you using windows or linux? if you are using linux then you > > can just get > > the cvs otherwise ill have to give you a bindary to keep on testing with. > > > > - Brad > > > > --- phpsurf <ph...@if...> wrote: > > > hi > > > > > > I'm testing the client with a wsdl ... > > > case sensitivity and parameter names seem to work fine with the > > wsdl :) good > > > point. > > > > > > but I got a bug with the following WSDL : > > > > > > > > ------------------------------------------------------------------ > > ---------- > > > -- > > > <?xml version="1.0"?> > > > > > > <definitions name="BabelFishService" > > > xmlns:tns="http://www.xmethods.net/sd/BabelFishService.wsdl" > > > targetNamespace="http://www.xmethods.net/sd/BabelFishService.wsdl" > > > xmlns:xsd="http://www.w3.org/1999/XMLSchema" > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > > xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > > > <message name="BabelFishRequest"> > > > <part name="translationmode" type="xsd:string"/> > > > <part name="sourcedata" type="xsd:string"/> > > > </message> > > > > > > <message name="BabelFishResponse"> > > > <part name="return" type="xsd:string"/> > > > </message> > > > > > > <portType name="BabelFishPortType"> > > > <operation name="BabelFish"> > > > <input message="tns:BabelFishRequest" > > name="BabelFish"/> > > > <output message="tns:BabelFishResponse" > > name="BabelFishResponse"/> > > > </operation> > > > </portType> > > > > > > <binding name="BabelFishBinding" type="tns:BabelFishPortType"> > > > <soap:binding style="rpc" > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > <operation name="BabelFish"> > > > <soap:operation > > soapAction="urn:xmethodsBabelFish#BabelFish"/> > > > <input> > > > <soap:body use="encoded" > > namespace="urn:xmethodsBabelFish" > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > > </input> > > > <output> > > > <soap:body use="encoded" > > namespace="urn:xmethodsBabelFish" > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > > </output> > > > </operation> > > > </binding> > > > > > > <service name="BabelFish"> > > > <documentation>Translates text of up to 5k in > > length, between a variety of > > > languages.</documentation> > > > <port name="BabelFishPort" binding="tns:BabelFishBinding"> > > > <soap:address > > > location="http://services.xmethods.net:80/perl/soaplite.cgi"/> > > > </port> > > > </service> > > > > > > </definitions> > > > > > ------------------------------------------------------------------ > > ---------- > > > -- > > > > > > the message received by the server is : > > > see the ***FIXME*** ! > > > > > > > > ------------------------------------------------------------------ > > ---------- > > > -- > > > <?xml version="1.0" encoding="UTF-8"?> > > > <SOAP-ENV:Envelope > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > > > <SOAP-ENV:Body> > > > <BabelFish xmlns="***FIXME***"> > > > <translationmode xsi:type="xsd:string">en_fr</translationmode> > > > <sourcedata xsi:type="xsd:string">some pretty text to translate > > > !</sourcedata> > > > </BabelFish> > > > </SOAP-ENV:Body> > > > > > > </SOAP-ENV:Envelope> > > > > > ------------------------------------------------------------------ > > ---------- > > > -- > > > > > > > > > > > > > > __________________________________________________________________ > > ____________ > > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Health - your guide to health and wellness > > http://health.yahoo.com > > > ______________________________________________________________________________ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com |
From: phpsurf <ph...@if...> - 2002-05-09 22:02:15
|
hi I've been testing this again with the babelfish and google services ... and I'm afraid the bug is still here ! Don't know if the fix had been included in your second release or not yet ... > -----Original Message----- > From: brad lafountain [mailto:rod...@ya...] > Sent: lundi 29 avril 2002 23:12 > To: phpsurf; php...@li... > Subject: Re: bug with WSDL: missing operation namespace in the soap > request > > > Sweet.. first bug! :) > > I thought i got rid of thoes damn temps... I'll commit a fix tonite. > > Are you using windows or linux? if you are using linux then you > can just get > the cvs otherwise ill have to give you a bindary to keep on testing with. > > - Brad > > --- phpsurf <ph...@if...> wrote: > > hi > > > > I'm testing the client with a wsdl ... > > case sensitivity and parameter names seem to work fine with the > wsdl :) good > > point. > > > > but I got a bug with the following WSDL : > > > > > ------------------------------------------------------------------ > ---------- > > -- > > <?xml version="1.0"?> > > > > <definitions name="BabelFishService" > > xmlns:tns="http://www.xmethods.net/sd/BabelFishService.wsdl" > > targetNamespace="http://www.xmethods.net/sd/BabelFishService.wsdl" > > xmlns:xsd="http://www.w3.org/1999/XMLSchema" > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > <message name="BabelFishRequest"> > > <part name="translationmode" type="xsd:string"/> > > <part name="sourcedata" type="xsd:string"/> > > </message> > > > > <message name="BabelFishResponse"> > > <part name="return" type="xsd:string"/> > > </message> > > > > <portType name="BabelFishPortType"> > > <operation name="BabelFish"> > > <input message="tns:BabelFishRequest" > name="BabelFish"/> > > <output message="tns:BabelFishResponse" > name="BabelFishResponse"/> > > </operation> > > </portType> > > > > <binding name="BabelFishBinding" type="tns:BabelFishPortType"> > > <soap:binding style="rpc" > > transport="http://schemas.xmlsoap.org/soap/http"/> > > <operation name="BabelFish"> > > <soap:operation > soapAction="urn:xmethodsBabelFish#BabelFish"/> > > <input> > > <soap:body use="encoded" > namespace="urn:xmethodsBabelFish" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > </input> > > <output> > > <soap:body use="encoded" > namespace="urn:xmethodsBabelFish" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > </output> > > </operation> > > </binding> > > > > <service name="BabelFish"> > > <documentation>Translates text of up to 5k in > length, between a variety of > > languages.</documentation> > > <port name="BabelFishPort" binding="tns:BabelFishBinding"> > > <soap:address > > location="http://services.xmethods.net:80/perl/soaplite.cgi"/> > > </port> > > </service> > > > > </definitions> > > > ------------------------------------------------------------------ > ---------- > > -- > > > > the message received by the server is : > > see the ***FIXME*** ! > > > > > ------------------------------------------------------------------ > ---------- > > -- > > <?xml version="1.0" encoding="UTF-8"?> > > <SOAP-ENV:Envelope > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > <SOAP-ENV:Body> > > <BabelFish xmlns="***FIXME***"> > > <translationmode xsi:type="xsd:string">en_fr</translationmode> > > <sourcedata xsi:type="xsd:string">some pretty text to translate > > !</sourcedata> > > </BabelFish> > > </SOAP-ENV:Body> > > > > </SOAP-ENV:Envelope> > > > ------------------------------------------------------------------ > ---------- > > -- > > > > > > > > > __________________________________________________________________ > ____________ > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |
From: brad l. <rod...@ya...> - 2002-05-06 13:43:07
|
oh ok.... Do you know off hand how to convert the files? - Brad --- Andrey Hristov <ahr...@ic...> wrote: > I found the problem. I think that you develop under windows and therefore > there are \r\n's at the end of lines. The gcc of my mandrake does not > complain about this but the gcc on my dragon linux(glibc2.1, i don't know > atm what is the version of gcc) complains. I used "fromdos" and now > everything is ok except that I'm donwloading libxml2 because I don't have it > in the dragon linux. > > Andrey > > ----- Original Message ----- > From: "brad lafountain" <rod...@ya...> > To: "andrey" <ahr...@ic...> > Sent: Saturday, May 04, 2002 11:42 PM > Subject: Re: [PHP-SOAP-DEV] server segfault > > > > Is this from the current cvs? > > > > // brad > > --- andrey <ahr...@ic...> wrote: > > > Ok. I downloaded and will test it tonight. However I've problem > compiling > > > libphp4.so with --enable-soap on my notebook(p166/16mb), which is dragon > > > linux, glibc2.1, kernel 2.2.16 . gcc complains about 'stray "/" ' (not > sure > > > but looked like this). I use this computer as webserver and develop > under > > > win95 on my second machine. If you can compile libphp4.so against > glibc2.1 > > > (with built xmlrpc and soap within) I'll be very thankful. > > > > > > Will you explain shortly what was the problem? > > > > > > Andrey > > > > > > ----- Original Message ----- > > > From: "brad lafountain" <rod...@ya...> > > > To: <php...@li...> > > > Sent: Saturday, May 04, 2002 7:38 PM > > > Subject: [PHP-SOAP-DEV] server segfault > > > > > > > > > > well i think i found the segfault.. i already commited it to cvs. > > > > > > > > You can d/l it and test it, i can't get to segfault anymore. > > > > > > > > - Brad > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Yahoo! Health - your guide to health and wellness > > > > http://health.yahoo.com > > > > > > > > _______________________________________________________________ > > > > > > > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > > > > the hardware. You get the recognition. Email Us: > ban...@so... > > > > _______________________________________________ > > > > Phpsoaptoolkit-development mailing list > > > > Php...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Health - your guide to health and wellness > > http://health.yahoo.com > > > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |