Thursday, January 27, 2011

Re: parsing SOAP request

Could you try with this

elif request.method == 'POST':
print request.raw_post_data
response = HttpResponse(mimetype='text/xml')
response.write(request.raw_post_data)
return response

Regards,
Anurag

On Thu, Jan 27, 2011 at 1:07 PM, sami nathan <itssami.gb4u@gmail.com> wrote:
> Hi
>     Now i tried to parse the incoming request and send my response i tried
> in the following way by  just sending what request came as it as response
> (ECHO server).and i am very newbie i dont know how to parse the request. I
> used ZSI sucessfully but in that requset was handled by itself but ZSI
> application is not accepting in django
> --------------------------------------------------------------------------------------------------------------------------------------------
> My view looks like this :
> def recive_ShortMessage(request):
>     if request.method == 'GET':
>        ref= "Process  in progress"
>        return HttpResponse(ref)
>     elif request.method == 'POST':
>         print request.POST.QueryDict
>         return HttpResponse (request.POST)
>
> But the error is
> org.apache.axis2.AxisFault:  in xml declaration
>  at [row,col {unknown-source}]: [1,13]
>
> (I am using java client)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment