Yii Web Service vs Custom Made JSON

Hi,

Do you think its best if I use the architecture provided by Yii to do SOAP Web Services?

Or …

Shall I use my own JSON web service way, this is basically a Controller that "echos / returns" JSON.

What are the benefits of using the standard architecture provided by Yii?

James.

there are pros and cons for both solutions:

SOAP is ‘enterprise’ standard and there are SOAP implementations in most environments and frameworks. it considered mature and stable, has strong typing, etc. but it gives more overhead.

JSON is used mostly in frontent (javascript) with simple services, is very lazy when comes to data format, but is ‘human readable’ and fast.

just pick one of them.