question about Zend_XmlRpc_Server and responce Content-type

View: New views
3 Messages — Rating Filter:   Alert me  

question about Zend_XmlRpc_Server and responce Content-type

by Sergej Kurakin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

Re: question about Zend_XmlRpc_Server and responce Content-type

by Matthew Weier O'Phinney-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-- Sergej Kurakin <sergej.kurakin@...> wrote
(on Monday, 31 March 2008, 02:51 AM -0700):

>
> 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
> http://www.xmlrpc.com/spec 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.

I wouldn't call it a bug, necessarily, but we should try and adhere to
the standard as much as possible.

Do you have permissions to post issues to the issue tracker? If so,
please report this; if not, let me know and I will.

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/

Re: question about Zend_XmlRpc_Server and responce Content-type

by Sergej Kurakin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I will post issue this evening (Europe time) when I will be out of office, and patch for it (I hope).
 
Moreover, there could be a walk around for this issue with custom class, that is a child of Zend_XmlRpc_Response for thouse, who need it quick until next stable release of Zend Framework.

On Mon, Mar 31, 2008 at 3:10 PM, Matthew Weier O'Phinney <matthew@...> wrote:
-- Sergej Kurakin <sergej.kurakin@...> wrote
(on Monday, 31 March 2008, 02:51 AM -0700):
>
> 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
> http://www.xmlrpc.com/spec 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.

I wouldn't call it a bug, necessarily, but we should try and adhere to
the standard as much as possible.

Do you have permissions to post issues to the issue tracker? If so,
please report this; if not, let me know and I will.

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/




--
Pagarbiai,
Sergej Kurakin
------------------------------------------------------
IT Skyriaus vadovas
dip .: studija | UAB Dabarties Interneto projektų studija
mob. tel.:(+370) 685 537 15;