« Return to Thread: question about Zend_XmlRpc_Server and responce Content-type

question about Zend_XmlRpc_Server and responce Content-type

by Sergej Kurakin :: Rate this Message:

Reply to Author | View in Thread

So, today I was writing an web-application with XML-RPC client from Ruby, that uses XML-RPC server, based on Zend_XmlRpc_Server and found interesting issue.

As I see from sources Zend_XmlRpc_Server sends HTTP header Content-Type: application/xml, and XML-RPC client expects an Content-Type: text/xml and if gets other - throws exceptions.

I understand, that it sounds more as client issue, but in XML-RPC spec I see responce example with Content-Type: text/xml. Is it a small bug in default Zend_XmlRpc_Server (actually in Zend_XmlRpc_Response_Http)? I know, it is easy to solve.

Thank you!

 « Return to Thread: question about Zend_XmlRpc_Server and responce Content-type

LightInTheBox - Buy quality products at wholesale price!