473,327 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

A SOAPpy question... (Method Parameters)

I'm having difficulty sending out correctly named method parameters to
a php soap server that I am running using SOAPpy. Idealy I would like
to send XML that looks like this (which I cribbed from another client
that works just fine)
<SOAP-ENV:Body>
<ns1:login xmlns:ns1="http://testuri.org">
<user_auth>
<user_name xsi:type="xsd:string">
hpottash
</user_name>

<password xsi:type="xsd:string">
775fd0ac8dcdba0f307e8a2a474f9dce
</password>
<version xsi:type="xsd:string">
.01
</version>
</user_auth>
<application_name xsi:type="xsd:string">
SoapTest
</application_name>
</ns1:login>
</SOAP-ENV:Body>
The closest I can come with SOAPpy is by running the following >>>
remote = SOAPpy.SOAPProxy("http://192.168.0.200/",
"http://testuri.org")
remote.login({"user_auth": {'user_name': 'theusername', 'password':
'thepassword', "version" : ".01"}, "application_name":"SoapTest"});

Which generates XML that looks like this:
<SOAP-ENV:Body>
<ns1:login xmlns:ns1="http://testuri.org" SOAP-ENC:root="1">
<v1>
<application_name xsi:type="xsd:string">
SoapTest
</application_name>
<user_auth>
<password xsi:type="xsd:string">
thepassword
</password>
<user_name xsi:type="xsd:string">
theusername
</user_name>
<version xsi:type="xsd:string">
.01
</version>
</user_auth>
</v1>
</ns1:login>
</SOAP-ENV:Body>

I believe that the Server is unable to parse this correctly because of
the <v1> tag, but I don't know how to specify what the names of the
parameters that are passed to the method should be.

Any help would be deeply appreciated.
-Harry

Jul 19 '05 #1
0 1439

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bartas | last post by:
Hi, I'am writting a simple SOAP client in python (2.4) using SOAPpy lib. I've met with this problem: when I want to send a list of complex type using some method from WebService(java,WAS), ...
0
by: Sameer Deshpande | last post by:
Hi, I am using python SOAPpy module to call a web service. Call to web service gets executed successfully. I am facing a problem if the call to WS results into redirect. I get "HTTPError:...
1
by: m.banaouas | last post by:
Hello Pythoneers: I would like to ask you a simple question: Are you satisfied by SOAPpy module? Actually, I use this module since a year and i immediately found it very well-implemented,...
0
by: Steve | last post by:
Hi All, I have a Python script that uses SOAPpy and I'm outputting all of the methods and info about the parameters... I'm having trouble getting information out of the __init__ parameter. ...
1
by: icius | last post by:
Hello all, I am trying to use a web services API with Python and SOAPpy as a client. Some of the method paramters in this web service's WSDL are asking for an "ArrayOfString" type. Here is my...
0
by: Alex Ezell | last post by:
Can anyone offer any assistance as to how to convert a basic python dictionary, list, or even tuple into the SOAP type "ArrayOfKeyValue"? I am currently using SOAPpy, but would be willing to...
4
by: Maurice LING | last post by:
Hi, I have a problem: 1. Assuming that my application is a SOAP server that uses SOAPpy, 2. I am given port 35021 for use. What I normally do (simply) is: functionlist =
0
by: pion | last post by:
Hello I'm trying to make a web service client in python, and so to start out, I found this simple example that are supposed to parse an wsdl file using SOAPPy. I'm using Windows and got SOAPPy...
1
by: Christof Winter | last post by:
I am trying to use a webservice with SOAPpy: import SOAPpy intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl" intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl) The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.