Re: Fwd: [SOAP] Help Required on Segmentation Fault on invoking a WebService developed in Java Axis
| From: | Samisa Abeysinghe | 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:Hi, I tried it with 'param0' it did not worked out.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> btHowever, 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 oninvoking aWebService 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 PublicLicense, and you arewelcome to change it and/or distribute copies of it undercertainconditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "showwarranty" for details.This GDB was configured as "i386-redhat-linux-gnu"...(nodebugging symbolsfound) Using host libthread_db library "/lib/libthread_db.so.1". "/var/www/html/demo/php/testsoap5.php" is not a core dump:File format notrecognized (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:<samisa.abeysinghe@gmail.comCan you tell me how to get the gdb trace ? thanks in advance, Sadashiv On Jan 23, 2008 9:06 PM, Samisa Abeysinghe<mailto:samisa.abeysinghe@gmail.com> <mailto: samisa.abeysinghe@gmail.com <mailto:samisa.abeysinghe@gmail.com>>>wrote:smarty wrote:
thanks and regards, Sadashiv On Jan 23, 2008 6:05 PM, Samisa Abeysinghe < samisa.abeysinghe@gmail.comDoes it still seg fault? Can you send the gdb trace?Thanks, Samisa...
<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:<mailto:samisa.abeysinghe@gmail.com
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
JavaWhen i call getFunctions method of thefunction.webservice
SoapClient it listsout
the functionsexposed by webservice but when i try to call
the functionsegmentation fault. My php code is : <?php tryit gives a
{
$client = new SoapClient("
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl");var_dump($client->__getTypes());var_dump($client->__getFunctions());
$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://schemas.xmlsoap.org/wsdl/soap12/*"<http://messaging.test.com*/>>"< http://messaging.test.com*/xmlns:soap12="*
xmlns:ns0="*.com/xsd*"http://messaging.test <http://messaging.test/><http://messaging.test/ >< http://messaging.test/>
<http://schemas.xmlsoap.org/wsdl/mime/*>"xmlns: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*>>" xmlns:wsaw="*<http://org.apache.axis2/xsd*
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# <
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://messaging.test.com/xsd*>>"<xs:schemaattributeFormDefault ="*qualified*" elementFormDefault="*qualified*"http://messaging.test.com/xsd* <targetNamespace="*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#>< xs:sequence> * * <xs:element minOccurs="*0*" name="*param0*"<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#><http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>
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#>< 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#
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>> <
xs:complexType> *-*
<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#xs:sequence>http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <<
* * <xs:element minOccurs="*0*" name="*return*"
* * </xs:sequence> * * </xs:complexType> * * </xs:element> *-*type="*xs:int*" />
http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# > <<
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#>>> <
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#>>> <<
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*"* * </wsdl:message> *-*element="*ns0:sendEmail*" /><
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*"urn:testPhpResponse*" /> * * </wsdl:operation> *-*wsaw:Action="*
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*"urn:sendEmail*" /> * * <wsdl:outputwsaw:Action="*
message="*axis2:sendEmailResponse*"urn:sendEmailResponse*" /> * * </wsdl:operation> * * </wsdl:portType> *-* <wsaw:Action="*
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#wsdl:input> * * <mime:content part="*sendEmail*"http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>> <<
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#="*SendEmailWSHttpport*"<http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl# <http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>>><wsdl:portname
* * <http:address location="*binding="*axis2:SendEmailWSHttpBinding*">
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#="*SendEmailWSSOAP12port_http*"http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#>><<wsdl:portname
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.