christiankerl / ckWebServicePlugin

Build SOAP and WSDL based web services with symfony 1.x.
MIT License
11 stars 5 forks source link

ckWebServicePlugin to php SoapClient #1

Open Prometee opened 13 years ago

Prometee commented 13 years ago

Hello,

I tried to link two websites with a transmission of some datas between them with a webservice. Both of the websites are using Symfony 1.4/Propel with php 5.3.5. The first website is the owner of the webservice build with ckWebServicePlugin 4.0.0, the second have a simple native php SoapClient. When I tried to request the server with SOAP_1_1 I have a response and my process is well computed. But when I tried to change the soap_version to SOAP_1_2, I encounter a problem the result binded to the var which receive the return of my soap method is empty but the __getLastResponse give me the same result as the SOAP_1_1 response.

So I tried to find the problem and I simply modify my Wsdl file in the wsdl:binding > wsdl:operation > wsdl:output > soap:body : part="result" I change "result" by "results" and also rename wsdl:message > wsdl:part name="result" by name="results"

Apparently the word "result" is a reserved word in SOAP_1_2, and the generation of the result part name is hard-coded in the file ckWebServicePlugin/lib/vendor/ckWsdlGenerator/ckWsdlOperation.class line: 65