How can I force my PHP SoapServer to send a JSON object as a response instead of an XML doc?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is not
SOAP, so no. It can incorporate a jsonstring in some xml node, that’s about it. You may want just aRESTserver servingjson.You can bastardize it though, making it by definition NOT SOAP, but some weird hybrid:
… so, technically this is possible, but I suspect there is not a single client which understands this.