Adding a HTTP header to a SOAPpy request

R

r.grimm

Joined
Jun 21, 2011
Messages
2
Reaction score
0
And the http header is a server defined one, and i shall add this when i send client request, what should i do?
the code like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
endpoint = "http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
ns = "http://xxxxxxxxxxxxxxxxxx"
id = "<?xml version='1.0'?><ID>shfta</ID>"
proxy = SOAPpy.SOAPProxy(endpoint, namespace=ns)
result = proxy.somemethod(arg0=id, arg1=query)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top