469,608 Members | 1,508 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,608 developers. It's quick & easy.

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 1350

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sameer Deshpande | last post: by
1 post views Thread by m.banaouas | last post: by
reply views Thread by Steve | last post: by
1 post views Thread by icius | last post: by
reply views Thread by Alex Ezell | last post: by
4 posts views Thread by Maurice LING | last post: by
reply views Thread by pion | last post: by
reply views Thread by Solution2021 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.