Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   SOAPpy, WSDL and objects (http://www.velocityreviews.com/forums/t355195-soappy-wsdl-and-objects.html)

Bob.Capa@gmail.com 03-07-2006 04:14 PM

SOAPpy, WSDL and objects
 
Hi,

I am trying to access a webservice which needs a login request of the
following form:

<login>
<request>
<firstname>FirstName</firstname>
<lastname>LastName</lastname>
</request>
</login>

I am trying to do this with the following code:

from SOAPpy import WSDL
server = WSDL.Proxy(m_url)
request = {'firstname': FirstName,
'lastname': LastName}
server.login(request)

But this will be sending the following:
<login>
<v1>
<firstname>FirstName</firstname>
<lastname>LastName</lastname>
</v1>
</login>

Basically, I need to know how to change the code so it generates
'request' instead of 'v1'.

Have a nice evening!


Dieter Maurer 03-08-2006 07:21 PM

Re: SOAPpy, WSDL and objects
 
Bob.Capa@gmail.com writes on 7 Mar 2006 08:14:47 -0800:
> <login>
> <request>
> <firstname>FirstName</firstname>
> <lastname>LastName</lastname>
> </request>
> </login>
>
> I am trying to do this with the following code:
>
> from SOAPpy import WSDL
> server = WSDL.Proxy(m_url)
> request = {'firstname': FirstName,
> 'lastname': LastName}
> server.login(request)


Try: "server.login({'request':request})".


Dieter


All times are GMT. The time now is 10:04 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.