HI
I am NEWBIE i am trying to run an server and my POST request is from
java api(client) and i cant able to see exact error in java api its just
showing HTML request is not accepting in java b coz django giving me error
iin html format but by some how i manage to print request.POST from my
request
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<QueryDict: {u'<?xml version': [u'\'1.0\'
encoding=\'UTF-8\'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"><soapenv:Body><ns1:rec
eiveShortMessageRequest xmlns:ns1="http://flypp.infy.com/sms/v2010r1_0
"><uniqueI
D>1234534366</uniqueID><applicationID>1</applicationID><transactionID>t1</transa
ctionID><placeholder_1>p1</placeholder_1><placeholder_2>p2</placeholder_2><
messa
ge>DICT test</message>
</ns1:receiveShortMessageRequest></soapenv:Body></soapenv:
Envelope>']}>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
now i want to change just message in my request.POST (denoted by red color
in above request) and i am helpless i tried the following code
def recive_ShortMessage(request):
if request.method == 'POST':
request=request.POST.QueryDict.copy()
qt=request.QueryDict.copy()
print qt
qt['message'] = 'I am changing it!'
return HttpResponse(qt)
_____________________________________________________________________________________________________________________
_____________________________________________________________________________________________________________________
As java api is not showing what error i am having i can know error in this
program
--
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.