Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 27, 2011 06:32:17

sami n.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

parsing SOAP request


Hi
i am working web service i am getting SOAP(POST) request from client now
i am trying to parse the request xml and sending the response my soap
request is

<QueryDict: {u'<?xml version': }>
response
now i want send response as change is denoted in colors
**'<?xml version': }>

--
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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 27, 2011 07:28:01

Łukasz R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

parsing SOAP request


Hey,

On 27 January 2011 07:32, sami nathan <itssami.g...@gmail.com> wrote:
> Hi
>    i am working web service i am getting SOAP(POST) request from client now
> i am trying to parse the request xml and sending the response my soap
> request is
>
> <QueryDict: {u'<?xml version': }>
> response
>  now i want send response as change is denoted in colors
> '<?xml version': }>
>

Ok, so what problem are you encountering and what have you already tried ?

--
Łukasz Rekucki

--
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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 27, 2011 07:37:21

sami n.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

parsing SOAP request


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 :

(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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 27, 2011 13:35:11

Anurag C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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.g...@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 :
>
> (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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support