lcanessa1 ~/repos/scripts/webservice_scripts (master) $ python createUsers.pyHere's the code snippet (the error occurs on the last line):
Login_url: https://isidore-dev.udayton.edu/sakai-ws/soap/login?wsdl
Traceback (most recent call last):
File "createUsers.py", line 29, in <module>
sessionId = loginProxy.login(username, password)
File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 470, in __call__
return self.__r_call(*args, **kw)
File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 492, in __r_call
self.__hd, self.__ma)
File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 363, in __call
config = self.config)
File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 263, in call
raise HTTPError(code, msg)
SOAPpy.Errors.HTTPError: <HTTPError 301 Moved Permanently>
login_url = server_url + "/sakai-ws/soap/login?wsdl"
script_url = server_url + "/sakai-ws/soap/sakai?wsdl"
loginProxy = WSDL.SOAPProxy(login_url)
scriptProxy = WSDL.SOAPProxy(script_url)
if debug:
print "Login_url: {}".format(login_url)
sessionId = loginProxy.login(username, password)
webservices.allowlogin = truewebservices.allow = *webservices.log-allowed = truewebservices.log-denied = true
--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.
Login_url: http://sakai11-dev.<host>.edu:8080/sakai-ws/soap/login?wsdl
Traceback (most recent call last):File "createUsers.py", line 29, in <module>sessionId = loginProxy.login(username, password)File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 470, in __call__return self.__r_call(*args, **kw)File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 492, in __r_callself.__hd, self.__ma)
File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 406, in __callraise pSOAPpy.Types.faultType: <Fault soap:Client: Message part login was not recognized. (Does it exist in service WSDL?)>
The following was added to the Tomcat config (within the <Engine> tag of conf/server.xml):frontend https-backupbind X.Y.Z.212:443 ssl crt /etc/haproxy/certs/ no-sslv3reqadd X-Forwarded-Proto:\ httpscapture request header X-Forwarded-For len 64capture request header User-agent len 256capture request header Cookie len 64capture request header Accept-Language len 64use_backend isidore-dev if { ssl_fc_sni isidore-dev.<host>.edu }default_backend catch-allbackend isidore-devhttp-request set-header X-Forwarded-Port %[dst_port]http-request add-header X-Forwarded-Proto https if { ssl_fc }option httpchk HEAD /portal HTTP/1.1\r\nHost:localhostcookie SERVERID insert indirect nocachebalance leastconnserver sakai11-dev.<host>.edu <IP>:8080 cookie 1 check inter 5000
<Valve className="org.apache.catalina.valves.RemoteIpValve"internalProxies="X.Y.Z/24"remoteIpHeader="x-forwarded-for"remoteIpProxiesHeader="x-forwarded-by"protocolHeader="x-forwarded-proto" />
lcanessa1 ~/repos/scripts/webservice_scripts (master) $ python createUsers.py
Traceback (most recent call last):
File "createUsers.py", line 33, in <module>
sessionId = loginProxy.login(username, password)File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 470, in __call__return self.__r_call(*args, **kw)File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 492, in __r_callself.__hd, self.__ma)File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 406, in __callraise pSOAPpy.Types.faultType: <Fault soap:Client: Message part login was not recognized. (Does it exist in service WSDL?)>
pip install zeep