Hi Matt,
thanks for your reply. In the meantime I found the error: The webservice
had a wrong base location statement at the end of the wsdl file. It was
directing the suds client to 127.0.0.1, port 9001. Off course there was
no daemon waiting at this port. :-))
I asked the service provider to change this setting and after the change
everything was just perfect.
BR
Markus
Am Donnerstag, den 31.03.2011, 05:36 -0400 schrieb Matt C:
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(a)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(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds