salesforce-marketingcloud / FuelSDK-Python

FuelSDK for python
Other
126 stars 194 forks source link

[BUG] #124

Open dakindre opened 4 years ago

dakindre commented 4 years ago

Describe the bug soap_client method not found when instantiating ETL_Client. SUDS complains it cannot find the method 'PartnerAPI.Soap.len'. I've copied the WSDL file from your repo into my python module as recommended. I'm using windows so I had to correct the path to fit your formatting.

Expected behavior The SOAP Client should not have errored out. The method should be found

Screenshots soap_issue

Code snippet wsdl_url = (os.path.dirname(os.path.realpath(file)) + '/ExactTargetWSDL.xml').replace('\', '/')

    self.myClient = FuelSDK.ET_Client(
        False,
        False,
        {
            'clientid': 'XXXXXXXXXXXXXXXXXXXXXXXXXX',
            'clientsecret': 'XXXXXXXXXXXXXXXXXXXXXXXXXX',
            'authenticationurl': 'https://XXXXXXXXXXXXXXXXXXXXX.auth.marketingcloudapis.com',
            'useOAuth2Authentication': 'True',
            'wsdl_file_local_loc': wsdl_url
        }
    )

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (e.g. gif) is not sufficient.

Environment

The bug has the severity