Re: [SOAP] Help Required on Segmentation Fault on invoking a WebService developed in Java Axis
| From: | Samisa Abeysinghe | Date: | Thu, 24 Jan 2008 05:06:31 +0000 |
| Subject: | Re: [SOAP] Help Required on Segmentation Fault on invoking a WebService developed in Java Axis | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2736@lists.php.net to get a copy of this message | ||
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>> 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 webservicefunction.When i call getFunctions method of the SoapClient it lists outthe functionsexposed 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#> < wsdl:definitions targetNamespace=*http://messaging.test.com*<http://messaging.test.com*/> xmlns:axis2="*http://messaging.test.com* <http://messaging.test.com*/>"xmlns:soap12="*http://schemas.xmlsoap.org/wsdl/soap12/*" xmlns:ns0="*http://messaging.test <http://messaging.test/>.com/xsd*" xmlns:mime="*http://schemas.xmlsoap.org/wsdl/mime/*"xmlns:http="* http://schemas.xmlsoap.org/wsdl/http/*" xmlns:ns1="* 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#> < wsdl:types> *-* <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*>"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*"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#>> <xs:complexType> *-* <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#> < xs:complexType> *-* < 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#>> <xs:element name="*sendEmailResponse*"> *-* <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#> < 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#>> <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#> < 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#> < wsdl:output> * * <soap:body use="*literal*" /> * * </wsdl:output> * * </wsdl:operation> * * </wsdl:binding> *-* < 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*" type="*text/xml*" /> * * </wsdl:input> *-* < 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#> < 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#> < 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#> < wsdl:output> * * <soap12:body use="*literal*" /> * * </wsdl:output> * * </wsdl:operation> * * </wsdl:binding> *-* < http://72.167.92.140:9080/axis2/services/SendEmailWS?wsdl#> < wsdl:service name="*SendEmailWS*"> *-* <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#> <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.