Thread: Re: [PHP-SOAP-DEV] 'always_populate_raw_post_data' question
Status: Alpha
Brought to you by:
rodif_bl
From: brad l. <rod...@ya...> - 2002-05-02 15:18:02
|
Well... I dunno about that.... Can you supply a backtrace... gdb httpd run -X then run the script that cause the crash... then type bt... this will get you a backtrace and more information for me to go on... - Brad --- Jean-Charles Preaux <jc....@wa...> wrote: > in fact > i fust typing the hello_world-server.php in the browser. > :( > but when i use hello_world_server.php it crash my web server ...without any > response. > thx > ----- Original Message ----- > From: "brad lafountain" <rod...@ya...> > To: "Jean-Charles Preaux" <jc....@wa...>; > <php...@li...> > Sent: Thursday, May 02, 2002 4:36 PM > Subject: Re: [PHP-SOAP-DEV] 'always_populate_raw_post_data' question > > > > Hmm... are you running a SoapObject against the hello_world-server or are > you > > just typing the hello_world-server.php in the browser directly/command > line. > > This is the output you should recieve if you aren't using a SoapObject to > > access the server. Let me know if this helps > > > > - Brad > > > > --- Jean-Charles Preaux <jc....@wa...> wrote: > > > Hello > > > i try today to use PHP-SOAP extension. > > > it compiled well (i use php-4.2.0 and apache-1.3.24, libxml2-2.4.19, > > > expat-1.95.2, Sablot-0.90) > > > i try the "hello world-server.php" script and the output is : > > > <!-- > > > <?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> > > > - <SOAP-ENV:Fault xsi:type="SOAP-ENC:Struct"> > > > <faultstring xsi:type="xsd:string">PHP-SOAP requires > > > 'always_populate_raw_post_data' to be on please check your php.ini > > > file</faultstring> > > > <faultcode xsi:type="xsd:string">SOAP-ENV:Server</faultcode> > > > </SOAP-ENV:Fault> > > > </SOAP-ENV:Body> > > > </SOAP-ENV:Envelope> > > > --> > > > then i create a php.ini with : > > > always_populate_raw_post_data = 1 > > > but the new output is : > > > <!-- > > > <?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> > > > - <SOAP-ENV:Fault xsi:type="SOAP-ENC:Struct"> > > > <faultstring xsi:type="xsd:string">Couln't find > > > HTTP_RAW_POST_DATA</faultstring> > > > <faultcode xsi:type="xsd:string">SOAP-ENV:Server</faultcode> > > > </SOAP-ENV:Fault> > > > </SOAP-ENV:Body> > > > </SOAP-ENV:Envelope> > > > --> > > > i don't understand , have i made a mistake ? > > > thanks > > > Jean-Charles Preaux > > > http://analogx.dyndns.org > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Health - your guide to health and wellness > > http://health.yahoo.com > __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
From: Jean-Charles P. <jc....@wa...> - 2002-05-02 17:43:32
|
Re it's ok there is no crash but when i launch the script below, the httpd daemon is lauched a least 50 times, without any response from the browser i launch hello_world_client.php /* hello_world_client.php */ <?php $hello =3D new SoapObject("http://localhost:8080/hello_world_server.php", "urn:HelloWorld"); echo $hello->hello_soap(); ?> /* hello_world_server.php */ <?php $server =3D new SoapServer("urn:HelloWorld"); $server->addFunction("hello_soap"); $server->handle(); function hello_soap($message){ return "PHP-SOAP=A8says ($message)"; } ?> /* when i run gdb */ web:/opt/serveur/bin# gdb httpd GNU gdb 2002-04-01-cvs Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you = are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for detail= s. This GDB was configured as "i386-linux"...(no debugging symbols found)... (gdb) run -X -f /opt/serveur/conf/httpd.conf Starting program: /opt/serveur/bin/httpd -X -f /opt/serveur/conf/httpd.co= nf (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debuggi= ng symbols found)...(no debugging symbols found)...(no debugging symbols found)... is it ok ? thx Jean-Charles Preaux =2E ----- Original Message ----- From: "brad lafountain" <rod...@ya...> To: "Jean-Charles Preaux" <jc....@wa...> Cc: <php...@li...> Sent: Thursday, May 02, 2002 5:18 PM Subject: Re: [PHP-SOAP-DEV] 'always_populate_raw_post_data' question > Well... I dunno about that.... > > Can you supply a backtrace... > > gdb httpd > > run -X > > then run the script that cause the crash... > > then type bt... > > this will get you a backtrace and more information for me to go on... > > - Brad > --- Jean-Charles Preaux <jc....@wa...> wrote: > > in fact > > i fust typing the hello_world-server.php in the browser. > > :( > > but when i use hello_world_server.php it crash my web server ...witho= ut any > > response. > > thx > > ----- Original Message ----- > > From: "brad lafountain" <rod...@ya...> > > To: "Jean-Charles Preaux" <jc....@wa...>; > > <php...@li...> > > Sent: Thursday, May 02, 2002 4:36 PM > > Subject: Re: [PHP-SOAP-DEV] 'always_populate_raw_post_data' question > > > > > > > Hmm... are you running a SoapObject against the hello_world-server = or are > > you > > > just typing the hello_world-server.php in the browser directly/comm= and > > line. > > > This is the output you should recieve if you aren't using a SoapObj= ect to > > > access the server. Let me know if this helps > > > > > > - Brad > > > > > > --- Jean-Charles Preaux <jc....@wa...> wrote: > > > > Hello > > > > i try today to use PHP-SOAP extension. > > > > it compiled well (i use php-4.2.0 and apache-1.3.24, libxml2-2.4.= 19, > > > > expat-1.95.2, Sablot-0.90) > > > > i try the "hello world-server.php" script and the output is : > > > > <!-- > > > > <?xml version=3D"1.0" encoding=3D"UTF-8" ?> > > > > - <SOAP-ENV:Envelope > > > > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" > > > > SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encodin= g/" > > > > xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" > > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > > > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"> > > > > - <SOAP-ENV:Body> > > > > - <SOAP-ENV:Fault xsi:type=3D"SOAP-ENC:Struct"> > > > > <faultstring xsi:type=3D"xsd:string">PHP-SOAP requires > > > > 'always_populate_raw_post_data' to be on please check your php.in= i > > > > file</faultstring> > > > > <faultcode xsi:type=3D"xsd:string">SOAP-ENV:Server</faultcode> > > > > </SOAP-ENV:Fault> > > > > </SOAP-ENV:Body> > > > > </SOAP-ENV:Envelope> > > > > --> > > > > then i create a php.ini with : > > > > always_populate_raw_post_data =3D 1 > > > > but the new output is : > > > > <!-- > > > > <?xml version=3D"1.0" encoding=3D"UTF-8" ?> > > > > - <SOAP-ENV:Envelope > > > > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" > > > > SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encodin= g/" > > > > xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" > > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > > > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"> > > > > - <SOAP-ENV:Body> > > > > - <SOAP-ENV:Fault xsi:type=3D"SOAP-ENC:Struct"> > > > > <faultstring xsi:type=3D"xsd:string">Couln't find > > > > HTTP_RAW_POST_DATA</faultstring> > > > > <faultcode xsi:type=3D"xsd:string">SOAP-ENV:Server</faultcode> > > > > </SOAP-ENV:Fault> > > > > </SOAP-ENV:Body> > > > > </SOAP-ENV:Envelope> > > > > --> > > > > i don't understand , have i made a mistake ? > > > > thanks > > > > Jean-Charles Preaux > > > > http://analogx.dyndns.org > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Health - your guide to health and wellness > > > http://health.yahoo.com > > > > > __________________________________________________ > 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 sup= ply > the hardware. You get the recognition. Email Us: bandwidth@sourceforge.= net > _______________________________________________ > Phpsoaptoolkit-development mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development |
From: brad l. <rod...@ya...> - 2002-05-02 18:07:21
|
This sample runs fine on my machine.... try this.. <?php $hello = new SoapObject("http://localhost:8080/hello_world_server.php", "urn:HelloWorld"); echo $hello->hello_soap(); if($hello->__isFault()) var_dump($hello->__getFault()); ?> That will show you if there server or client is giving you a fault. - Brad --- Jean-Charles Preaux <jc....@wa...> wrote: > Re > it's ok there is no crash but when i launch the script below, the httpd > daemon is lauched a least 50 times, without any response from the browser > i launch hello_world_client.php > > /* hello_world_client.php */ > <?php > $hello = new SoapObject("http://localhost:8080/hello_world_server.php", > "urn:HelloWorld"); > echo $hello->hello_soap(); > ?> > > /* hello_world_server.php */ > <?php > $server = new SoapServer("urn:HelloWorld"); > $server->addFunction("hello_soap"); > $server->handle(); > > > function hello_soap($message){ > return "PHP-SOAP¨says ($message)"; > } > > ?> > /* when i run gdb */ > web:/opt/serveur/bin# gdb httpd > GNU gdb 2002-04-01-cvs > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-linux"...(no debugging symbols found)... > (gdb) run -X -f /opt/serveur/conf/httpd.conf > Starting program: /opt/serveur/bin/httpd -X -f /opt/serveur/conf/httpd.conf > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > (no debugging symbols found)...(no debugging symbols found)...(no debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)... > > > is it ok ? > thx > Jean-Charles Preaux > . > ----- Original Message ----- > From: "brad lafountain" <rod...@ya...> > To: "Jean-Charles Preaux" <jc....@wa...> > Cc: <php...@li...> > Sent: Thursday, May 02, 2002 5:18 PM > Subject: Re: [PHP-SOAP-DEV] 'always_populate_raw_post_data' question > > > > Well... I dunno about that.... > > > > Can you supply a backtrace... > > > > gdb httpd > > > > run -X > > > > then run the script that cause the crash... > > > > then type bt... > > > > this will get you a backtrace and more information for me to go on... > > > > - Brad > > --- Jean-Charles Preaux <jc....@wa...> wrote: > > > in fact > > > i fust typing the hello_world-server.php in the browser. > > > :( > > > but when i use hello_world_server.php it crash my web server ...without > any > > > response. > > > thx > > > ----- Original Message ----- > > > From: "brad lafountain" <rod...@ya...> > > > To: "Jean-Charles Preaux" <jc....@wa...>; > > > <php...@li...> > > > Sent: Thursday, May 02, 2002 4:36 PM > > > Subject: Re: [PHP-SOAP-DEV] 'always_populate_raw_post_data' question > > > > > > > > > > Hmm... are you running a SoapObject against the hello_world-server or > are > > > you > > > > just typing the hello_world-server.php in the browser directly/command > > > line. > > > > This is the output you should recieve if you aren't using a SoapObject > to > > > > access the server. Let me know if this helps > > > > > > > > - Brad > > > > > > > > --- Jean-Charles Preaux <jc....@wa...> wrote: > > > > > Hello > > > > > i try today to use PHP-SOAP extension. > > > > > it compiled well (i use php-4.2.0 and apache-1.3.24, libxml2-2.4.19, > > > > > expat-1.95.2, Sablot-0.90) > > > > > i try the "hello world-server.php" script and the output is : > > > > > <!-- > > > > > <?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> > > > > > - <SOAP-ENV:Fault xsi:type="SOAP-ENC:Struct"> > > > > > <faultstring xsi:type="xsd:string">PHP-SOAP requires > > > > > 'always_populate_raw_post_data' to be on please check your php.ini > > > > > file</faultstring> > > > > > <faultcode xsi:type="xsd:string">SOAP-ENV:Server</faultcode> > > > > > </SOAP-ENV:Fault> > > > > > </SOAP-ENV:Body> > > > > > </SOAP-ENV:Envelope> > > > > > --> > > > > > then i create a php.ini with : > > > > > always_populate_raw_post_data = 1 > > > > > but the new output is : > > > > > <!-- > > > > > <?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> > > > > > - <SOAP-ENV:Fault xsi:type="SOAP-ENC:Struct"> > > > > > <faultstring xsi:type="xsd:string">Couln't find > > > > > HTTP_RAW_POST_DATA</faultstring> > > > > > <faultcode xsi:type="xsd:string">SOAP-ENV:Server</faultcode> > > > > > </SOAP-ENV:Fault> > > > > > </SOAP-ENV:Body> > > > > > </SOAP-ENV:Envelope> > > > > > --> > > > > > i don't understand , have i made a mistake ? > > > > > thanks > > > > > Jean-Charles Preaux > > > > > http://analogx.dyndns.org > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Yahoo! Health - your guide to health and wellness > > > > http://health.yahoo.com > > > > > > > > > __________________________________________________ > > 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 > > > _______________________________________________________________ > > 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 |