ID:               32941
 Updated by:       [EMAIL PROTECTED]
 Reported By:      steckovic at aarongroup dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         SOAP related
 Operating System: FEDORA
 PHP Version:      5.0.4
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-05-04 07:36:04] steckovic at aarongroup dot cz

Description:
------------
Hello,

I have problem with returing structured exception.
I wrote simple echoString service in Java (Axis) with following
functionality:
   if argument is not equal to string "exception" same value
   is returned. If argument is equal to "exception" exception is
thrown. Exception has two data fields integer and string.

If client is java program everything is working. If client is PHP
code and argument is "exception", php (last snapshot) goes down 
by signal segv, for other arguments it is working.

See following files:
 service/* - service implementation in Java
 client.php - client implementation in PHP
 request.xml - soap request 
 response.xml - response which sends PHP down by sig segv  


If it is user error, I apologize to you.

Thank you
  Petr Steckovic



 

<?php
define('WSDL_LOCATION',
'http://212.24.157.117:8080/axis/services/echo?wsdl');
if(!extension_loaded('soap')) dl('soap.so');
$client =& new SoapClient(WSDL_LOCATION, array("trace" => 1,
'exceptions' => 0));
$ahoj  = $client->echoString('exception');
echo "Echo".$ahoj."\n";
var_dump($ahoj);
?>
 

Reproduce code:
---------------
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
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>
                <m:echoString xmlns:m="urn:service.EchoService"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
                        <e xsi:type="xsd:string">exception</e>
                </m:echoString>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

---- Response ----

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <soapenv:Body>
                <soapenv:Fault>
                        <faultcode>soapenv:Server.userException</faultcode>
                        <faultstring>service.EchoServiceException</faultstring>
                        <detail>
                                <service.EchoServiceException 
xsi:type="ns1:EchoServiceException"
xmlns:ns1="urn:service.EchoService">
                                        <intParameter 
xsi:type="xsd:int">105</intParameter>
                                        <parameter xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>string
param</parameter>
                                </service.EchoServiceException>
                                <ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/";>steckovic</ns2:hostname>
                        </detail>
                </soapenv:Fault>
        </soapenv:Body>
</soapenv:Envelope>



Expected result:
----------------
Correctly working with response. No SIGSEGV.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32941&edit=1

Reply via email to