AttributeError while consuming WSDL

AttributeError while consuming WSDL

Postby vinayverma007 » Wed May 25, 2016 12:03 pm

Hi,

I am new in python and using python 2.7 to consumes WSDL, code as below
Code: Select all
from suds.client import Client
from suds.wsse import *
from suds.wsdl import *
from datetime import timedelta,date,datetime,tzinfo
import requests
from requests.auth import HTTPBasicAuth
from suds.transport.https import WindowsHttpAuthenticated
import suds_requests
username = 'xyz'
password = 'xyz'
session = requests.session()
session.auth=(username, password)
WSDL_URL = 'https://xyz/WSDL'
client = Client(WSDL_URL, faults=False, cachingpolicy=1, location=WSDL_URL, transport=suds_requests.RequestsTransport(session))
result = client.service.Method('INC000000000001')

But I am getting error as mentioned below
Code: Select all
AttributeError: 'NoneType' object has no attribute 'promotePrefixes'

Could anyone help me to resolve this error

Thanks
Vinay
Last edited by Yoriz on Wed May 25, 2016 12:16 pm, edited 1 time in total.
Reason: First post lock. Added code tags.
vinayverma007
 
Posts: 1
Joined: Wed May 25, 2016 11:54 am

Re: AttributeError while consuming WSDL

Postby Ofnuts » Wed May 25, 2016 1:38 pm

Full stack trace? The 'NoneType' (which applies only to 'None') hints that something didn't get created as expected.
This forum has been moved to http://python-forum.io/. See you there.
User avatar
Ofnuts
 
Posts: 2659
Joined: Thu May 14, 2015 9:46 am
Location: Paris, France, EU, Earth, Solar system, Milky Way, Local Cluster, Universe #32987440940987


Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest