I created a sample webservice by using the ckwebservices plugin.The functional test given in the plugin documentation was run succesfully. I tried to call this webservice using
$client = new SoapClient('http://localhost:9095/MathApi.wsdl'); $response = $client- >__soapCall('simpleMultiply',array('a'=>1,'b'=>2)); But null is returned always. Please let me know if I am doing something wrong while calling the web service . The content of my wsdl file is given below. <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/ 2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="MathApi" targetNamespace="http://localhost:9095/MathApi.php/" xmlns:tns="http://localhost:9095/MathApi.php/" xmlns:soapenc="http:// schemas.xmlsoap.org/soap/encoding/"> <wsdl:types xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http:// localhost:9095/MathApi.php/"> <xsd:complexType name="ComplexNumber"> <xsd:sequence> <xsd:element name="realPart" type="xsd:double"/> <xsd:element name="imaginaryPart" type="xsd:double"/> </xsd:sequence> </xsd:complexType> <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ComplexNumberElement" type="tns:ComplexNumber"/> <xsd:complexType name="ComplexNumberArray"> <xsd:sequence> <xsd:element name="item" type="tns:ComplexNumber" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ComplexNumberArrayElement" type="tns:ComplexNumberArray"/> </xsd:schema> </wsdl:types> <wsdl:portType name="MathApiPortType"> <wsdl:operation name="simpleMultiply" parameterOrder="a b"> <wsdl:input message="tns:simpleMultiplyRequest"/> <wsdl:output message="tns:simpleMultiplyResponse"/> </wsdl:operation> <wsdl:operation name="ComplexMultiply" parameterOrder="input"> <wsdl:input message="tns:ComplexMultiplyRequest"/> <wsdl:output message="tns:ComplexMultiplyResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="MathApiBinding" type="tns:MathApiPortType"> <soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="simpleMultiply"> <soap:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/ soap/" soapAction="http://localhost:9095/MathApi.php/simpleMultiply" style="rpc"/> <wsdl:input xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" parts="a b" use="literal" namespace="http://localhost:9095/ MathApi.php/" encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/"/> </wsdl:input> <wsdl:output xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" parts="result" use="literal" namespace="http://localhost:9095/ MathApi.php/" encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/"/> </wsdl:output> </wsdl:operation> <wsdl:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="ComplexMultiply"> <soap:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/ soap/" soapAction="http://localhost:9095/MathApi.php/ComplexMultiply" style="rpc"/> <wsdl:input xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" parts="input" use="literal" namespace="http://localhost:9095/ MathApi.php/" encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/"/> </wsdl:input> <wsdl:output xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" parts="result" use="literal" namespace="http://localhost:9095/ MathApi.php/" encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:message name="simpleMultiplyRequest"> <wsdl:part name="a" type="xsd:int"/> <wsdl:part name="b" type="xsd:int"/> </wsdl:message> <wsdl:message name="simpleMultiplyResponse"> <wsdl:part name="result" type="xsd:int"/> </wsdl:message> <wsdl:message name="ComplexMultiplyRequest"> <wsdl:part name="input" type="tns:ComplexNumberArray"/> </wsdl:message> <wsdl:message name="ComplexMultiplyResponse"> <wsdl:part name="result" type="tns:ComplexNumber"/> </wsdl:message> <wsdl:service xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="MathApiService"> <wsdl:port xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="MathApiPort" binding="tns:MathApiBinding"> <soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="http://localhost:9095/MathApi.php/MathApi.php"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Thanks in advance, Dijil -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en