Give client.set_options() a try to point to the appropriate service. I use this feature frequently...

On Mon, Mar 21, 2011 at 8:03 PM, Markus Heller <heller@relix.de> wrote:
Dear list,

I am stuck with a strange error. Maybe I still don't understand the
concept, but please help me out:

       def __init__(self, mode=None):

               self.__mode = mode
               url = 'http://jiveserver/rpc/soap/CommunityService?wsdl'
               client = Client(url, cache=None)
               security = Security()
               token = UsernameToken('webservice', 'supersecret')
               security.tokens.append(token)
               client.set_options(wsse=security)
               print client.last_sent()
               result = client.service.getRecursiveCommunities()
               print client.last_sent()

Whenever I call my code, it will report to me that it refers to the
CommunityService on 127.0.0.1 and it tells me that the host actively
refused the connection.

>>>>>
urllib2.URLError: <urlopen error [Errno 10061] No connection could be
made because the target machine actively refused it>
<<<<<

That's completely clear to me because there is no soap service on
localhost.

How can I effectively direct the request towards the jiveserver?

Thanks ahead

Markus

_______________________________________________
suds mailing list
suds@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds