Re: Which is the most mature Soap module?

From: John J Lee (jjl_at_pobox.com)
Date: 06/04/04


Date: Fri, 4 Jun 2004 12:42:45 +0100 (GMT Daylight Time)
To: Mickel Grönroos <mickel@csc.fi>

On Fri, 4 Jun 2004, [ISO-8859-1] Mickel Grönroos wrote:

> The following is a rather long message. Here is a summary of my questions
> below:
>
> 1. ZSI fails on a TypeError when using ZSI.ServiceProxy, why?

dunno -- it's a while since I used it. Is that part of the WSDL stuff?
All that (which is common code between ZSI and SOAPpy) was pretty flaky
when I tried it.

> 2. Is there a way to use cookie authentification with SOAPpy
> (client-side)?

Yes, no reason why not to use my ClientCookie package to do that, but I
don't know from memory exactly where you need to insert the required code
in SOAPpy. I'm slightly surprised if SOAP needs cookie handling, but not
entirely, since I know it is required for some XML-RPC services.

[...]
> 2. Second, I need to upload a local file to a specific place on the server
> using the cookie as authentification.
[...]
> TypeError: an integer is required
> >>>
>
> Any ideas what this might be? I gather I would need to set the port to 443
> somewhere, but I can't find the right place.

No idea without digging, sorry. As I say, WSDL support is definitely
flaky, so it's always possible you've just hit a bug.

> The second part, i.e. the upload, is trickier. Using SOAP::Lite in Perl,
> one can specify a cookie to use for authentification, but I can seem to
> find that in the documentation of SOAPpy. So how do I do cookie
> authentification with SOAPpy (or ZSI for that matter)??
[...]
> -> proxy('http://services.xmethods.net/soap/servlet/rpcrouter',
> cookie_jar => HTTP::Cookies->new(ignore_discard => 1));
>
> print $soap->echoString('Hello')->result;
>
> I need something like that 'cookie_jar' parameter in SOAPpy too. Help and
> thanks!

I might have a look this weekend, but don't promise.

John



Relevant Pages

  • Re: Which is the most mature Soap module?
    ... ZSI fails on a TypeError when using ZSI.ServiceProxy, ... Is there a way to use cookie authentification with SOAPpy ...
    (comp.lang.python)
  • Re: Which is the most mature Soap module?
    ... I got ZSI to work better when using ZSI.Binding (and ... Run an upload function with two parameters (string "fullpath" and ... base64 encoded "filecontent") on another SOAP server adding the cookie to ...
    (comp.lang.python)
  • Re: Newbie needs help extracting data from XML
    ... I used httplib instead of SOAPpy or ZSI ... > Im a Python newbie and am trying to get the data out of a series of XML ... > Other XML files I want to work with may have several elements I want to ...
    (comp.lang.python)
  • Re: Best SOAP library?
    ... > How would you say ZSI compares to SOAPpy? ...
    (comp.lang.python)
  • Re: Python and SOAP
    ... > SOAPy hasn't been maintained in awhile. ... The two contemporary options ... > are ZSI or SOAPpy, ... > ZSI seems to have more serious development now, ...
    (comp.lang.python)

Loading