#34875 [NEW]: Soap call crashes when encoding is set
| From: | mano at easymail dot hu | Date: | Fri, 14 Oct 2005 18:34:26 +0000 |
| Subject: | #34875 [NEW]: Soap call crashes when encoding is set | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86603@lists.php.net to get a copy of this message | ||
From: mano at easymail dot hu
Operating system: Linux
PHP version: 5.0.5
PHP Bug Type: SOAP related
Bug description: Soap call crashes when encoding is set
Description:
------------
When I make a call with __soapCall function and encoding was set in the
constructor the process dies and an apache log created with
php: relocation error: php: undefined symbol: xmlBufferCreateStatic
If I quote the encoding option, everything works fine. This does not
happen in win32 enviroment.
The page returns internal server error. The example code is a proper call
to eBay's SOAP api, so for reproduction you need a valid certification id,
application id and development id for the sandbox-enviroment and a token
for a user. I don't know any other SOAP-services to try with but I know
that this was working on win32/apache/php5 combination.
Reproduce code:
---------------
$devId = 'exampledevid';
$appId = 'exampleappid';
$certId = 'examplecerid';
// Token for the ebay user
$token = "abc...123";
// The wsdl file for SOAP
$wsdl_url = 'http://developer.ebay.com/webservices/latest/eBaySvc.wsdl';
// Creating SOAPClient object with the HTTPS location. This is the
endpoint for the call.
$client = new SOAPClient($wsdl_url, array(
'trace' => 1
, 'exceptions'=> 1
, 'encoding'=>'ISO-8859-1'
, 'location' =>
'https://api.sandbox.ebay.com/wsapi?callname=GetSellerList&siteid=0&appid='.urlencode($appId).'&version=417&Routing=New'
));
// The valid authentification header for a call on eBay
$Auth = new ArrayObject(array(
'eBayAuthToken' => new SoapVar($token, XSD_STRING, NULL, NULL, NULL,
'urn:ebay:apis:eBLBaseComponents'),
'Credentials' => new SoapVar(
new ArrayObject(
array(
'AppId' => $appId,
'DevID' => $devId,
'AuthCert' => $certId
)
)
, SOAP_ENC_OBJECT
, null
, null
, null
, 'urn:ebay:apis:eBLBaseComponents'
),
));
// formatting header
$header_body = new SoapVar($Auth, SOAP_ENC_OBJECT);
$header = array(new SOAPHeader('urn:ebay:apis:eBLBaseComponents',
'RequesterCredentials', $header_body));
$params = array('Version' => 417, 'DetailLevel' => 'ReturnAll',
'UserID'=>'auseridfromsandbox', 'Pagination'=>
array('EntriesPerPage'=>200)
,'StartTimeFrom'=>'2005-08-01'
,'StartTimeTo'=>'2005-08-20'
);
try {
$user = $client->__soapCall('GetSellerList', array($params), NULL,
$header);
}catch (SoapFault $e){
print_r($e);
}
print_r($user);
Expected result:
----------------
An stdClass object with other childobjects
Actual result:
--------------
Execution stops.
error log in apache:
php: relocation error: php: undefined symbol: xmlBufferCreateStatic
Internal Server Error screen
--
Edit bug report at http://bugs.php.net/?id=34875&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34875&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34875&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34875&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34875&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34875&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34875&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34875&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34875&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34875&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34875&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34875&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34875&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34875&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34875&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34875&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34875&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34875&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34875&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34875&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34875&r=mysqlcfg