Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

soap segmentation fault using wsdl file in PHP

Status
Not open for further replies.

don2241

IS-IT--Management
Jun 1, 2001
57
AU
Hi,
I have a simple test snippet below.
When I run this in PHP 5.1.6 I get a Segmentation Fault error but when I run the exact same code in PHP 5.3.3 everything works fine. The error appears to happen on this line:
$obj = $soap->retrievePrice($arr);

If I do not want to upgrade the PHP version what do I need to do to make this work in PHP v.5.1.6
Can anyone point me in the right direction

/Martin

**** start code ****
$soap = new SoapClient("file.wsdl");
$arr = array(
"faci" =>"M00",
"itno" =>"VISIA",
"cuno" =>"100000",
"cucd" =>"AUD"
);
try{
$obj = $soap->retrievePrice($arr);
$result = (array)$obj;
print_r($result);
}
catch (SoapFault $exception){
echo $exception;
}
**** finish code ****
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top