[Fedora-suds-list] How to start with suds and JIRA?
Jeff Ortel
jortel at redhat.com
Tue Oct 14 13:33:16 UTC 2008
Rene,
Alright, just tried this and works using the latest suds version 0.3.2
on trunk. After looking at your error a little more closely, it seems
you're using suds 0.3.1 (or earlier). So, to work with this service you
need to install the latest (development) version. I added a new section
for early development releases under the download section on the project
wiki ( https://fedorahosted.org/suds/ ).
Regards,
Jeff
Rene wrote:
> Hi,
>
> Having used some of the other libs to write a Python SOAP client, I
> stumbled upon suds.
> A relief to see something that's actively being developed, not
> dependent on outdated libs, and looks easy to use :)
> And that's exactly what I need.
> I don't want to become a SOAP expert, my focus is on the client logic.
> Alas, I hit my first problem.
>
> I want to write a client for JIRA (www.atlassian.com).
> Atlassian exposes their own JIRA instance to the public, so you can
> test the client against their JIRA.
> To get access you need to login as user 'soaptester' with password 'soaptester'.
> Anyone can run this code:
>
> import logging
> from suds.client import Client
> logging.basicConfig(level=logging.INFO)
> url = 'http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl'
> client = Client(url)
> # Login
> auth = client.service.login('soaptester', 'soaptester')
> # Try to retrieve user information
> user = client.service.getUser(auth, 'soaptester')
> print user
>
> This results in:
>
> ERROR:suds.resolver:(@href) not-found
> WARNING:suds.bindings.unmarshaller:attribute (href) type, not-found
> (RemoteUser){
> _href = "#id0"
> }
>
> I'm probably missing something stoopidly basic.
> Any help would be much appreciated.
>
> Cheers,
> rev
>
> _______________________________________________
> fedora-suds-list mailing list
> fedora-suds-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-suds-list
More information about the suds
mailing list