Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31497

SOAP WSDL Access does not Work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Component/s: Web Services
    • Labels:
      None
    • Environment:
      11.x Nightly oracle / mysql

      Description

      When attempting to access the SOAP services with the following python snippet:

      import os
      import sys
      import csv
      from SOAPpy import WSDL
      
      ##################### EDIT HERE #####################
      
      username = 'admin'
      password = 'admin'
      
      #server_url = "https://trunk-mysql.nightly.sakaiproject.org"
      server_url = "https://qa11-oracle.nightly.sakaiproject.org"
      
      filename = "data.csv"
      
      debug = 1
      
      ############## DO NOT EDIT BELOW HERE  ##############
      ############## OR DO IF YOU WANT TO :p ##############
      
      #login_url = server_url +  '/sakai-axis/SakaiLogin.jws?wsdl'
      #script_url = server_url + '/sakai-axis/SakaiScript.jws?wsdl';
      
      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)
      

      The following error is generated:

      Login_url: https://qa11-oracle.nightly.sakaiproject.org/sakai-ws/soap/login?wsdl
      Traceback (most recent call last):
        File "createUsers.py", line 34, 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 406, in __call
          raise p
      SOAPpy.Types.faultType: <Fault soap:Client: Message part login was not recognized.  (Does it exist in service WSDL?)>
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                lcanessa Leonardo Canessa
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration