Re: Fwd: [SOAP] Help Required on Segmentation Fault on invoking a WebService developed in Java Axis

From: Date: Thu, 24 Jan 2008 09:04:53 +0000
Subject: Re: Fwd: [SOAP] Help Required on Segmentation Fault on invoking a WebService developed in Java Axis
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.soap 
Request: Send a blank email to php-soap+get-2742@lists.php.net to get a copy of this message
Apparently this is a bug in PHP SOAP extension and not in your code. It happens because the extension is not capable to pick some namespace in the SOAP binding related definitions in the WSDL. Thanks, Samisa... smarty wrote:
Also one more thing which i forgot to mention is that if you look at wsdl bindings they are in following sequence <wsdl:binding name="SendEmailWSSOAP11Binding" type="axis2:SendEmailWSPortType"> </wsdl:binding> <wsdl:binding name="SendEmailWSHttpBinding" type="axis2:SendEmailWSPortType"> </wsdl:binding> <wsdl:binding name="SendEmailWSSOAP12Binding" type="axis2:SendEmailWSPortType"> </wsdl:binding> IF I Change the sequence to <wsdl:binding name="SendEmailWSHttpBinding" type="axis2:SendEmailWSPortType"> </wsdl:binding> <wsdl:binding name="SendEmailWSSOAP11Binding" type="axis2:SendEmailWSPortType"> </wsdl:binding> <wsdl:binding name="SendEmailWSSOAP12Binding" type="axis2:SendEmailWSPortType"> </wsdl:binding> I.E is IF HttpBinding is first then it works fine. Am I missing something ? Is there any linkage between the sequence and the issue? On Jan 23, 2008 11:59 PM, smarty <sadashiv.borkar@gmail.com <mailto:sadashiv.borkar@gmail.com>> wrote:
    Is there any way i can enable debugging or i need to compile it
    with debug option ?
         On Jan 23, 2008 11:53 PM, Samisa Abeysinghe
    <samisa.abeysinghe@gmail.com <mailto:samisa.abeysinghe@gmail.com>>
    wrote:
        Sorry I made a mistake earlier.
        you have to run it like the following:
        gdb php
        gdb> r testsoap5.php
        gdb> bt
        However, looks like this would not reveal the problem as the
        php program
        does not seem to have debug symbols.
        Samisa...
        smarty wrote:
---------- Forwarded message ---------- From: smarty <sadashiv.borkar@gmail.com
        <mailto:sadashiv.borkar@gmail.com>>
Date: Jan 23, 2008 10:33 PM Subject: Re: [SOAP] Help Required on Segmentation Fault on
        invoking a
WebService developed in Java Axis To: Samisa Abeysinghe <samisa.abeysinghe@gmail.com
        <mailto:samisa.abeysinghe@gmail.com>>
Thanks again for you help. This is what i got from the commands [root@ip-72-167-92-140 php]# gdb php -F testsoap5.php gdb: unrecognized option `-F' Use `gdb --help' for a complete list of options. [root@ip-72-167-92-140 php]# gdb php testsoap5.php GNU gdb Red Hat Linux ( 6.5-15.fc6rh) Copyright (C) 2006 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-redhat-linux-gnu"...(no
        debugging symbols
found) Using host libthread_db library "/lib/libthread_db.so.1". "/var/www/html/demo/php/testsoap5.php" is not a core dump:
        File format not
recognized (gdb) run Starting program: /usr/bin/php (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) [Thread debugging using libthread_db enabled] Error while reading shared library symbols: Cannot find new threads: generic error Cannot find user-level thread for LWP 24553: generic error (gdb) bt #0 0xb7ff57a0 in _dl_debug_state () from /lib/ld-linux.so.2 #1 0xbfffda34 in ?? () #2 0xb7fea9e6 in dl_main () from /lib/ld- linux.so.2 #3 0xb7ffad6b in _dl_sysdep_start () from /lib/ld-linux.so.2 #4 0xb7fe82b8 in _dl_start () from /lib/ld-linux.so.2 #5 0xb7fe7817 in _start () from /lib/ld- linux.so.2 (gdb) Thanks and Regards, Sadashiv On Jan 23, 2008 10:08 PM, Samisa Abeysinghe
        <samisa.abeysinghe@gmail.com
        <mailto:samisa.abeysinghe@gmail.com>>
wrote:
Run: gdb php <script name> on gdb prompt gdb> run when it crashes gdb> bt Samisa... smarty wrote:
Can you tell me how to get the gdb trace ? thanks in advance, Sadashiv On Jan 23, 2008 9:06 PM, Samisa Abeysinghe
<samisa.abeysinghe@gmail.com
        <mailto:samisa.abeysinghe@gmail.com> <mailto:
        samisa.abeysinghe@gmail.com <mailto:samisa.abeysinghe@gmail.com>>>
wrote:
    smarty wrote:
Hi, I tried it with 'param0' it did not worked out.
    Does it still seg fault? Can you send the gdb trace?
    Thanks,
    Samisa...
thanks and regards, Sadashiv On Jan 23, 2008 6:05 PM, Samisa Abeysinghe < samisa.abeysinghe@gmail.com
        <mailto:samisa.abeysinghe@gmail.com>
<mailto:samisa.abeysinghe@gmail.com
<mailto:samisa.abeysinghe@gmail.com>>
<mailto: samisa.abeysinghe@gmail.com
<mailto:samisa.abeysinghe@gmail.com>
<mailto:samisa.abeysinghe@gmail.com
<mailto:samisa.abeysinghe@gmail.com>>>> wrote:
    I think the error is in:
    $namedArray = array('xmlData'    => "TEST");
    There is no element in testPhp schema with the
        name xmlData.
I think, looking at the WSDL, it should be : $namedArray = array('param0' => "TEST");
    HTH,
    Samisa...
    smarty wrote:
Hi All, iam getting a segmentation fault when i call a
        Java
webservice
function.
When i call getFunctions method of the
        SoapClient it lists
out
    the functions
exposed by webservice but when i try to call
        the function
it gives a
segmentation fault. My php code is : <?php try
    {
$client = new SoapClient("
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl");
var_dump($client->__getFunctions());
var_dump($client->__getTypes());
  $namedArray = array('xmlData'    => "TEST");
$results = $client->testPhp($namedArray); echo "MESSAGE ID IS :<br>";
     print_r($results);
} catch (SOAPFault $exception) { echo $exception; } ?> My WSDL is * * <?xml version=" 1.0" encoding="UTF-8" ?> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:definitions targetNamespace=*
    http://messaging.test.com*
<http://messaging.test.com*/> < http://messaging.test.com*/>
<http://messaging.test.com*/> xmlns:axis2="*
http://messaging.test.com*
        <http://messaging.test.com*/> <http://messaging.test.com*/>
< http://messaging.test.com*/
<http://messaging.test.com*/>>"
xmlns:soap12="*
http://schemas.xmlsoap.org/wsdl/soap12/*"
        xmlns:ns0="*
http://messaging.test <http://messaging.test/>
<http://messaging.test/ >
< http://messaging.test/>
.com/xsd*"
    xmlns:mime="* http://schemas.xmlsoap.org/wsdl/mime/*
<http://schemas.xmlsoap.org/wsdl/mime/*>"
xmlns:http="
* http://schemas.xmlsoap.org/wsdl/http/* "
        xmlns:ns1="*
http://org.apache.axis2/xsd*
    <http://org.apache.axis2/xsd*
<http://org.apache.axis2/xsd*>>" xmlns:wsaw="*
http://www.w3.org/2006/05/addressing/wsdl*"
        xmlns:xs="*
http://www.w3.org/2001/XMLSchema*" xmlns:soap="* http://schemas.xmlsoap.org/wsdl/soap/* "
        xmlns:wsdl="*
http://schemas.xmlsoap.org/wsdl/*"> *-* <
    http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# >> <
wsdl:types> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>>
<xs:schemaattributeFormDefault ="*qualified*" elementFormDefault="*qualified*"
    targetNamespace="*
http://messaging.test.com/xsd* <
    http://messaging.test.com/xsd*
<http://messaging.test.com/xsd*>>"
xmlns:xsd="*http://messaging.test.com/xsd* ">
*+* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
xs:element name="*testPhp*"> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <
xs:complexType> *-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>
< xs:sequence> * * <xs:element minOccurs="*0*" name="*param0*"
    nillable="*true*" type="*
xs:string*" /> * * </xs:sequence> * * </xs:complexType> * * </xs:element> *-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>
< xs:element name="*testPhpResponse*"> *-* <
    http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>> <
xs:complexType> *-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
xs:sequence>
* * <xs:element minOccurs="*0*" name="*return*"
    type="*xs:int*" />
* * </xs:sequence> * * </xs:complexType> * * </xs:element> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <
xs:element name="*sendEmail*"> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>> <
xs:complexType> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
xs:sequence> * * <xs:element minOccurs="*0*" name="*param0*"
    nillable="*true*" type="*
xs:string*" /> * * </xs:sequence> * * </xs:complexType> * * </xs:element> *-* <
    http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
< http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>> <
xs:element name="*sendEmailResponse*"> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>>
< xs:complexType> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <
xs:sequence> * * <xs:element minOccurs="*0*" name="*return*"
    nillable="*true*" type="*
xs:string*" /> * * </xs:sequence> * * </xs:complexType> * * </xs:element> * * </xs:schema> * * </wsdl:types> *-* <
    http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:message name="*sendEmailRequest*"> * * <wsdl:part name="*parameters*"
    element="*ns0:sendEmail*" />
* * </wsdl:message> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:message name="*testPhpResponse*"> * * <wsdl:part name="*parameters*"
    element="*ns0:testPhpResponse*" />
* * </wsdl:message> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:message name="*sendEmailResponse*"> * * <wsdl:part name="*parameters*"
    element="*ns0:sendEmailResponse*" />
* * </wsdl:message> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:message name="*testPhpRequest*"> * * <wsdl:part name="*parameters*"
        element="*ns0:testPhp*"
/> * * </wsdl:message> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <
wsdl:portType name="*SendEmailWSPortType*"> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:operation name="*testPhp*"> * * <wsdl:input message="*axis2:testPhpRequest*"
    wsaw:Action="*urn:testPhp*
" /> * * <wsdl:output
        message="*axis2:testPhpResponse*"
wsaw:Action="*
urn:testPhpResponse*" /> * * </wsdl:operation> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>>
< wsdl:operation name="*sendEmail*"> * * <wsdl:input
        message="*axis2:sendEmailRequest*"
wsaw:Action="*
urn:sendEmail*" /> * * <wsdl:output
        message="*axis2:sendEmailResponse*"
wsaw:Action="*
urn:sendEmailResponse*" /> * * </wsdl:operation> * * </wsdl:portType> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:binding name="*SendEmailWSSOAP11Binding*"
        type="*
axis2:SendEmailWSPortType*"> * * <soap:binding style="*document*" transport="* http://schemas.xmlsoap.org/soap/http* " /> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:operation name="*testPhp*"> * * <soap:operation soapAction="*urn:testPhp*"
    style="*document*" />
*-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:input> * * <soap:body use="*literal*" /> * * </wsdl:input> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <
wsdl:output> * * <soap:body use="*literal*" /> * * </wsdl:output> * * </wsdl:operation> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:operation name="*sendEmail*"> * * <soap:operation soapAction="*urn:sendEmail*"
    style="*document*" />
*-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:input> * * <soap:body use="*literal*" /> * * </wsdl:input> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:output> * * <soap:body use="*literal*" /> * * </wsdl:output> * * </wsdl:operation> * * </wsdl:binding> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:binding name="*SendEmailWSHttpBinding*"
        type="*
axis2:SendEmailWSPortType*"> * * <http:binding verb="*POST*" /> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:operation name="*testPhp*"> * * <http:operation
        location="*SendEmailWS/testPhp*" />
*-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:input> * * <mime:content part="*testPhp*"
        type="*text/xml*" />
* * </wsdl:input> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:output> * * <mime:content part="*testPhp*"
        type="*text/xml*" />
* * </wsdl:output> * * </wsdl:operation> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:operation name="*sendEmail*"> * * <http:operation
        location="*SendEmailWS/sendEmail*" />
*-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:input> * * <mime:content part="*sendEmail*"
        type="*text/xml*" />
* * </wsdl:input> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:output> * * <mime:content part="*sendEmail*"
        type="*text/xml*" />
* * </wsdl:output> * * </wsdl:operation> * * </wsdl:binding> *-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>> <
wsdl:binding name="*SendEmailWSSOAP12Binding*"
        type="*
axis2:SendEmailWSPortType*"> * * <soap12:binding style="*document*"
        transport="*
http://schemas.xmlsoap.org/soap/http*" /> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:operation name="*testPhp*"> * * <soap12:operation soapAction="*urn:testPhp*"
    style="*document*" />
*-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:input> * * <soap12:body use="*literal*" /> * * </wsdl:input> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:output> * * <soap12:body use="*literal*" /> * * </wsdl:output> * * </wsdl:operation> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> <
wsdl:operation name="*sendEmail*"> * * <soap12:operation
        soapAction="*urn:sendEmail*"
style="*document*" />
*-*
    <
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <
wsdl:input> * * <soap12:body use="*literal*" /> * * </wsdl:input> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:output> * * <soap12:body use="*literal*" /> * * </wsdl:output> * * </wsdl:operation> * * </wsdl:binding> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <
wsdl:service name="*SendEmailWS*"> *-* <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>>
<wsdl:portname
="*SendEmailWSHttpport*"
    binding="*axis2:SendEmailWSHttpBinding*">
* * <http:address location="*
        http://72.167.92.140:9080/axis2/services/SendEmailWS*" />
* * </wsdl:port> *-*
    <
        http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# >
<wsdl:portname
="*SendEmailWSSOAP11port_http*"
    binding="*axis2:SendEmailWSSOAP11Binding*">
* * <soap:address location="*
        http://72.167.92.140:9080/axis2/services/SendEmailWS*" />
* * </wsdl:port> *-*
        <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#
<
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>
<wsdl:portname
="*SendEmailWSSOAP12port_http*"
    binding="*axis2:SendEmailWSSOAP12Binding*">
* * <soap12:address location="*
        http://72.167.92.140:9080/axis2/services/SendEmailWS* " />
* * </wsdl:port> * * </wsdl:service> * * </wsdl:definitions> PLEASE ADVICE
    --
    PHP Soap Mailing List ( http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
-- cheers, Sadashiv Borkar Today is a gift, that's why it is called the present.
-- cheers, Sadashiv Borkar Today is a gift, that's why it is called the present.
    -- 
    cheers,
    Sadashiv Borkar
    Today is a gift, that's why it is called the present.
-- cheers, Sadashiv Borkar Today is a gift, that's why it is called the present.


« previous php.soap (#2742) next »