Welcome Guest, Not a member yet? Register   Sign In
Correct use of XML-RPC in MVC paradigm
#1

[eluser]jdav3579[/eluser]
Hi,
My understanding of MVC is that the model interacts with data sources and the Controller interacts with the user.
XML-RPC is suppose to send data back to the requesting machine. So therefore I could understand using the XML-RPC server in the controller. The XML-RPC server is also a data source/sink, so should it really go in the model?
The only trouble is that it still needs to be called from the controller, so I think it cuts across the two layers.

I have code that can be re-used by placing the XML-RPC server/client in the Model, but I have yet to figure out a way of doing it. One solution I thought of is to define the functions in the controller and then pass data about the controller back to the model which handles XML-RPC, but I believe this is an anti-pattern.


Can anyone point me in the right direction for its usage?

Thanks
John




Theme © iAndrew 2016 - Forum software by © MyBB