Yii Framework Forum: yii json webservice - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yii json webservice implementation for json webservice

#1 User is offline   Archana Negi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 22-June 11

Posted 22 June 2011 - 02:32 AM

Hi, i want to implement json web service.i have tried implementing with soap and xml.but is there any extension or code available for json based web service?the problem is how to consume it in other application.any code or reference for that will be appreciable.
0

#2 User is offline   kokomo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 281
  • Joined: 23-July 10

Posted 22 June 2011 - 02:39 AM

In the following topic of the guide Special Topics: Web Service there are simple code snippets which should help you to solve your problem.

Also be sure you have enabled the PHP SOAP extension (read the red note in the guide)
0

#3 User is offline   Anton Logvinenko 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 10-April 11
  • Location:Ukraine, Kharkiv

Posted 22 June 2011 - 08:44 AM

CJSON will help you with json

for example:
CJSON::encode($array)
CJSON::decode($array)

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users