473,396 Members | 1,924 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,396 software developers and data experts.

SOAP client

I'm trying to use SOAPpy 0.10.1 for a client but is difficult to handle
easly

Is this library in use or i'm using an OLD death library ?

I'm alone in find a lot of problem in a SOAP Client ?

I'm going crazy because function are not documented .

Exist another solution for di a SOAP CLient ??

Thank's
Glauco

Jul 18 '05 #1
6 6048
I'm using Twisted for my Internet-needs and in most cases it works like a
charm. But when its SOAP support seem to be buggy. Anyway, you could give it
a try and see if you can figure out what's wrong. Twisted is a wonderful
thing.

Thomas
"Nick Vargish" <na*@adams.patriot.net> wrote in message
news:yy*************@adams.patriot.net...
Glauco <gl****@sferacarta.com> writes:
I'm alone in find a lot of problem in a SOAP Client ?
No, I'm finding the SOAP thing pretty hard going myself, and I'm
usually pretty good at figuring things out for myself. I have a couple
of Perl "SOAP:Lite" scripts that I am trying to translate into Python,
and it's been quite frustrating.
I'm going crazy because function are not documented .
Exist another solution for di a SOAP CLient ??


There's ZSI, which has been called "more mature" by some people, but I
can't see much of a difference in approachability. Neither seems to be
very well documented. What I could really use are some more
examples...

Here's one of the Perl scripts I'm trying to translate:

use SOAP::Lite;
print SOAP::Lite
-> uri('urn:Temperatures')
-> proxy('http://clerkcap.house.gov/scripts/temper.pl')
-> f2c($ARGV[0])
-> result;

It's just one call. What's the Pythonic equivalent, using either
SOAP.py or the ZSI package?

Obviously, I need a better understanding of how SOAP is supposed to
work, but even that basic documentation is surprisingly hard to find
on the Web.

Nick

--
# sigmask.py || version 0.2 || 2003-01-07 || Feed this to your

Python. print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')

Jul 18 '05 #2
Here's one of the Perl scripts I'm trying to translate:

use SOAP::Lite;
print SOAP::Lite
-> uri('urn:Temperatures')
-> proxy('http://clerkcap.house.gov/scripts/temper.pl')
-> f2c($ARGV[0])
-> result;


Doesn't work for me.
Hmm.

CPAN is very impressive, and a huge wodge of stuff downloaded, but more
work needed. I looked at the google SOAP Python example and found that
hard, but it does look interesting.
--
A
Jul 18 '05 #3
Nick Vargish <na*@adams.patriot.net> wrote in message news:<yy*************@adams.patriot.net>...
Glauco <gl****@sferacarta.com> writes:
I'm going crazy because function are not documented .
Exist another solution for di a SOAP CLient ??


There's ZSI, which has been called "more mature" by some people, but I
can't see much of a difference in approachability. Neither seems to be
very well documented. What I could really use are some more
examples...

Here's one of the Perl scripts I'm trying to translate:

use SOAP::Lite;
print SOAP::Lite
-> uri('urn:Temperatures')
-> proxy('http://clerkcap.house.gov/scripts/temper.pl')
-> f2c($ARGV[0])
-> result;

It's just one call. What's the Pythonic equivalent, using either
SOAP.py or the ZSI package?

Obviously, I need a better understanding of how SOAP is supposed to
work, but even that basic documentation is surprisingly hard to find
on the Web.


One of the issues with ZSI is it is more setup for use in calling
servers where
methods use named parameters. The above example, which actually
appears
uncontactable, uses positional parameters and not named parameters. To
this end, the simplest mechanism provided by ZSI to make calls, isn't
going
to work properly for various reasons.

If you are indeed only interested in servers where methods have
positional
parameters, you might have a look at the "zsirpc" module for Python.
This
module is a simple wrapper around ZSI providing a kindler interface in
the
style of the "xmlrpclib" module specifically for calling servers with
methods
using positional parameters only.

If you want to try this out without having to download the package, go
to
the address:

http://www.dscpl.com.au/soap-debugger.php

This is a web based front end around the SOAP client code which the
"zsirpc"
module provides. It will allow you to make calls against services
accessable
over the Internet to gauge whether the ZSI package is going to work
for you
in the manner that the "zsirpc" interface uses it.

The equivalent Python code using the "zsirpc" module to make the same
Perl
call as you list is:

import zsirpc

url = 'http://clerkcap.house.gov/scripts/temper.pl'
uri = 'urn:Temperatures'
action = ''

#service = zsirpc.RemoteService(url,ns=uri,soapaction=action)
service = zsirpc.RemoteService(url,ns=uri)

print service.f2c(32.5)

Unfortunately I can't verify that this works since the call times out
against that
service.

As the interface provided by "zsirpc" is simpler in that it is a much
more
restrictive interface doing one specific thing, the documentation
needed to
cover it isn't much. For that go to:

http://ose.sourceforge.net/browse.ph...try=manual.htm

and then go into the chapter title "Remote Access" and look for the
documentation
on the "SOAP Gateway" to see how the client is configurable. Frankly
though, the "ns"
and "soapaction" attributes above are about as far as it goes. Do note
however,
that "zsirpc" is a subset of what is described in all that
documentation and is provided
as a separate package as a convenience. Where the documentation says
"netrpc.soap"
read it is meaning "zsirpc" and if something refers to just "netrpc",
again in code using
just "zsirpc", use "zsirpc" instead of "netrpc".

The only other bit of extensibility built in is that it has the
ability to automatically manage
types for Boolean, Binary (as BASE64), Date, DateTime, Time and
Duration. Information
about these types is described in the "Message Encoding" chapter of
the documentation.
You should ignore the bits about adding in new types as that only
applies to the framework
that "zsirpc" has been extracted from. If you did want to add news
types with "zsirpc"
you would need to drop down and use the ZSI packages way of defining
typecodes. You
might have to override an encoding method in the "zsirpc" package as
well, but can't
remember right now.

One warning, and I believe this still also applies to ZSI as well.
That is, that ZSI seems
to only interpret its own type of error response as returned by
servers. Thus, it will
work fine against a ZSI server, but use it against another server
which uses its own
means of encoding the detail associated with an error response, and
you might not
be able to do too much with it. The "zsripc" package understands the
ZSI error response
and one other which is particular to the framework it has been
extracted from, so it
doesn't do too much more to help you in that respect.

As to where you can get "zsirpc" from, go to the downloads section of:

http://ose.sourceforge.net

You might also be interested in getting down the "netrpc" package.
This contains both
a SOAP client and XML-RPC client where the interface is basically the
same with type
objects interchangeable between both. Use "netrpc" instead of "zsirpc"
and you will not
need to translate names when applying what the documentation says.
Jul 18 '05 #4
Graham Dumpleton wrote:
Nick Vargish <na*@adams.patriot.net> wrote in message news:<yy*************@adams.patriot.net>...
Glauco <gl****@sferacarta.com> writes:

I'm going crazy because function are not documented .
Exist another solution for di a SOAP CLient ??


There's ZSI, which has been called "more mature" by some people, but I
can't see much of a difference in approachability. Neither seems to be
very well documented. What I could really use are some more
examples...

Here's one of the Perl scripts I'm trying to translate:

use SOAP::Lite;
print SOAP::Lite
-> uri('urn:Temperatures')
-> proxy('http://clerkcap.house.gov/scripts/temper.pl')
-> f2c($ARGV[0])
-> result;

It's just one call. What's the Pythonic equivalent, using either
SOAP.py or the ZSI package?

Obviously, I need a better understanding of how SOAP is supposed to
work, but even that basic documentation is surprisingly hard to find
on the Web.

One of the issues with ZSI is it is more setup for use in calling
servers where
methods use named parameters. The above example, which actually
appears
uncontactable, uses positional parameters and not named parameters. To
this end, the simplest mechanism provided by ZSI to make calls, isn't
going
to work properly for various reasons.

If you are indeed only interested in servers where methods have
positional
parameters, you might have a look at the "zsirpc" module for Python.
This
module is a simple wrapper around ZSI providing a kindler interface in
the
style of the "xmlrpclib" module specifically for calling servers with
methods
using positional parameters only.

If you want to try this out without having to download the package, go
to
the address:

http://www.dscpl.com.au/soap-debugger.php

This is a web based front end around the SOAP client code which the
"zsirpc"
module provides. It will allow you to make calls against services
accessable
over the Internet to gauge whether the ZSI package is going to work
for you
in the manner that the "zsirpc" interface uses it.

The equivalent Python code using the "zsirpc" module to make the same
Perl
call as you list is:

import zsirpc

url = 'http://clerkcap.house.gov/scripts/temper.pl'
uri = 'urn:Temperatures'
action = ''

#service = zsirpc.RemoteService(url,ns=uri,soapaction=action)
service = zsirpc.RemoteService(url,ns=uri)

print service.f2c(32.5)

Unfortunately I can't verify that this works since the call times out
against that
service.

As the interface provided by "zsirpc" is simpler in that it is a much
more
restrictive interface doing one specific thing, the documentation
needed to
cover it isn't much. For that go to:

http://ose.sourceforge.net/browse.ph...try=manual.htm

and then go into the chapter title "Remote Access" and look for the
documentation
on the "SOAP Gateway" to see how the client is configurable. Frankly
though, the "ns"
and "soapaction" attributes above are about as far as it goes. Do note
however,
that "zsirpc" is a subset of what is described in all that
documentation and is provided
as a separate package as a convenience. Where the documentation says
"netrpc.soap"
read it is meaning "zsirpc" and if something refers to just "netrpc",
again in code using
just "zsirpc", use "zsirpc" instead of "netrpc".

The only other bit of extensibility built in is that it has the
ability to automatically manage
types for Boolean, Binary (as BASE64), Date, DateTime, Time and
Duration. Information
about these types is described in the "Message Encoding" chapter of
the documentation.
You should ignore the bits about adding in new types as that only
applies to the framework
that "zsirpc" has been extracted from. If you did want to add news
types with "zsirpc"
you would need to drop down and use the ZSI packages way of defining
typecodes. You
might have to override an encoding method in the "zsirpc" package as
well, but can't
remember right now.

One warning, and I believe this still also applies to ZSI as well.
That is, that ZSI seems
to only interpret its own type of error response as returned by
servers. Thus, it will
work fine against a ZSI server, but use it against another server
which uses its own
means of encoding the detail associated with an error response, and
you might not
be able to do too much with it. The "zsripc" package understands the
ZSI error response
and one other which is particular to the framework it has been
extracted from, so it
doesn't do too much more to help you in that respect.

As to where you can get "zsirpc" from, go to the downloads section of:

http://ose.sourceforge.net

You might also be interested in getting down the "netrpc" package.
This contains both
a SOAP client and XML-RPC client where the interface is basically the
same with type
objects interchangeable between both. Use "netrpc" instead of "zsirpc"
and you will not
need to translate names when applying what the documentation says.


This is great i'll try it now !!

Glauco

Jul 18 '05 #5
ddoc <ne**@92tr.freeserve.co.uk> writes:
Doesn't work for me.
Hmm.


I haven't run it in a while... that server might just have been
a transient. I meant the example more for purposes of illustration,
anyway. :^)

Nick

--
# sigmask.py || version 0.2 || 2003-01-07 || Feed this to your Python.
print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')

Jul 18 '05 #6
Thanks Graham, lots of useful information there...

Nick

--
# sigmask.py || version 0.2 || 2003-01-07 || Feed this to your Python.
print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')
Jul 18 '05 #7

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

Similar topics

0
by: Alvin A. Delagon | last post by:
Hello python programmers! I would like to add myself to the ever increasing number of python users. Here's my first question. I've written two SOAP clients using PERL and a PHP. I tried to wirte a...
2
by: George B | last post by:
Hi, I have developed a SOAP service using Perl's SOAP::Lite module and I am currently working through interoperability testing. I have written a client in VB6 using MSSOAP 3.0 and it works fine....
0
by: jennifer.perkins | last post by:
I've seen a couple posts by people having similar problems, but the suggested solutions I've tried so far haven't worked. I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the...
5
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error...
0
by: kencana | last post by:
hi All, I got problem in passing data (more than one) from soap client to the soap server. but if i only passing one data at a time, it works successfully.. The following is the error message i...
1
by: lkosak | last post by:
Hi everyone, I am encountering what appears to be a timeout problem using a PHP soap client to connect to a VB.net soap server. I cannot provide the WSDL as it is only available for internal...
2
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until I...
1
by: monsalvo | last post by:
Hello. I've just coded a VBScript SOAP Client to send requests to a web service in our intranet. It's working and we'll use it in a DTS cuz we have not implemented SQL Server 2005 yet. Anyway. I...
1
by: ehsanch | last post by:
Hi i am writing a SOAP client, when using php 5 soap , it send this code and i get error : <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.