목차

Python SOAP (Web Services)

Python Web Services는 다양한 라이브러리들이 존재한다.

suds

SOAPpy

기본 WSDL Client

from SOAPpy import WSDL
 
WSDLFILE = '/path/to/copy/of/GoogleSearch.wsdl'
APIKEY = 'YOUR_GOOGLE_API_KEY'
 
wsdl_client = WSDL.Proxy(WSDLFILE)
 
wsdl_client.methods # 메소드 목록 출력
 
call_info = wsdl_client.methods['method-name']
call_info.inparams # Input Parameters
call_info.inparams.name
call_info.inparams.type
 
call_info.outparams # Output Parameters

Debug

http://soappy.ooz.ie/2011/05/how-do-i-debug-soappy-to-xml-messages.html

wsdl_client.soapproxy.config.debug = 1

OSA