From:             deucalion at lycos dot co dot uk
Operating system: Windows2000,XP  
PHP version:      5.0.4
PHP Bug Type:     SOAP related
Bug description:  $_POST bug

Description:
------------
$_post does not working in the SOAPclient. 

Reproduce code:
---------------
<html>
<body>
<? 
if (!$_POST['zipcode'])

 {

?>

<h2>U.S ZipCodesTemperatureService</h2>

<form action="<?=$_SERVER['PHP_SELF']?>" method="post">

Type search term: <input type="text" name="zipcode">

<input type="submit" name="submit" value="Invoke">

</form>

<?

} 

 else

{

$client = new
soapclient("http://www.xmethods.net/sd/2001/DemoTemperatureService.wsdl",array
(

"trace" => 1,

"exceptions" => 0)); 

$params= array ( "zipcode" => $_POST['zipcode'] );

$client->call("getTemp",$params");

print "<pre>\n"; 

print "Request :\n".htmlspecialchars($client->__getLastRequest()) ."\n";

print "Response:\n".htmlspecialchars($client->__getLastResponse())."\n";

print "</pre>";

}

?>

</body>

</html>



Expected result:
----------------
Request :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="urn:xmethods-Temperature-Demo"
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";><SOAP-ENV:Body><ns1:getTemp><zipcode
xsi:type="xsd:string">zipcode</zipcode></ns1:getTemp></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<SOAP-ENV:Body>
<ns1:getTempResponse xmlns:ns1="urn:xmethods-Temperature-Demo"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<return xsi:type="xsd:float">52.0</return>
</ns1:getTempResponse>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Actual result:
--------------
SERVER NOT FOUND. 

-- 
Edit bug report at http://bugs.php.net/?id=33706&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33706&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33706&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33706&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33706&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33706&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33706&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33706&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33706&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33706&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33706&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33706&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33706&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33706&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33706&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33706&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33706&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33706&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33706&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33706&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33706&r=mysqlcfg

Reply via email to