here is what i am doing
server code
from jsonrpc import handleCGI, ServiceMethod
from django.core import serializers
@ServiceMethod
def hello(msg):
json = serializers.serialize("json",msg) # initially i tried
return(msg) only but i was getting error JSONDecodeException at /c/
testhello/
# Expected []{}," or Number, Null, False or True
return HttpResponse(json)
or
return (json)
or i can use
return HttpResponse(json,mimetype='application/javascript')
none of them works
at client side i use
def testhello(response):
s = ServiceProxy("http://localhost/s/hello")
resp=s.hello('hello') # this is where i am doubtful
return HttpResponse(resp)
when calling it shows error
JSONDecodeException at /c/testhello/
Expected []{}," or Number, Null, False or True
what i am trying is creating two projects setup with apache virtual
host. one is interacting with user as we do normally. another is
serving the first project by taking requests and sending response to
the first without letting the user know anything.
On Jun 14, 5:39 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 14-Jun-07, at 6:00 PM, Dushyant Sharma wrote:
>
> > has any body used jsonrpc with django if yes kindly help me
> > here is how to use it but i cant use it with django facing problems
>
> would be helpful if you stated what you tried and what the errors were
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---