> pip install sudl
python > from sudl import Client
python > client = Client("wsdl 주소")
메소드 확인
python > print client
메소드 실행 방법
python > client.service.메소드(파라미터)
접속에러시
python > client.set_options(location="wsdl 메소드 url")
디버그 방법
http://stackoverflow.com/questions/4426204/how-can-i-output-what-suds-is-generating-receiving
from suds.client import Client
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
logging.getLogger('suds.xsd.schema').setLevel(logging.DEBUG)
logging.getLogger('suds.wsdl').setLevel(logging.DEBUG)
SB_PRIVATE_ACCESS = {"PATH":"https://thisurl.com:443/services/",}
client = Client(SB_PRIVATE_ACCESS['PATH'])
print client
댓글 없음:
댓글 쓰기