AnsweredAssumed Answered

Python 2.7.12 with SUDS with Developer BB VM 9.1

Question asked by mm0054384 on Dec 7, 2016
Latest reply on Dec 8, 2016 by mkauffman

I have two Courses with a course member.  Course id 10 and 11.  The following code seems to return no course members:

 

 

176     courseMembershipWS = Client(coursemember_url, autoblend=True)

 

177     headers = createHeaders('getCourseMembership', 'session', sessionId, 'CourseMember.WS')

178     courseMembershipWS.set_options(soapheaders=headers, port='CourseMembership.WSSOAP12port_https')

179

180     print courseMembershipWS

181

182     member_filter = courseMembershipWS.factory.create('ns4:MembershipFilter')

183     member_filter.filterType = 0

184

185     memberships = courseMembershipWS.service.getCourseMembership('10', member_filter)

186     print memberships

187

188     for member in memberships:

189         print member

 

I get an empty list returned []

 

Any ideas on what could be incorrect?

 

-Mike

Outcomes