문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
python:soap [2013/09/02 16:08] kwon37xi [OSA] |
python:soap [2013/09/02 16:55] kwon37xi [기본 WSDL Client] |
||
---|---|---|---|
줄 2: | 줄 2: | ||
Python Web Services는 다양한 라이브러리들이 존재한다. | Python Web Services는 다양한 라이브러리들이 존재한다. | ||
- | ===== OSA ===== | + | ===== SOAPpy |
- | * [[https://bitbucket.org/sboz/osa/ | + | * [[https://pypi.python.org/pypi/SOAPpy|SOAPpy pypi]] |
- | * 매우 빠르고 간단해 보임. | + | * [[http://www.diveintopython.net/soap_web_services/index.html|Dive into python - SOAP Web Services]] |
+ | ==== 기본 WSDL Client ==== | ||
+ | <code python> | ||
+ | from SOAPpy import WSDL | ||
+ | WSDLFILE = '/ | ||
+ | APIKEY = ' | ||
+ | |||
+ | wsdl_client = WSDL.Proxy(WSDLFILE) | ||
+ | |||
+ | wsdl_client.methods # 메소드 목록 출력 | ||
+ | |||
+ | call_info = wsdl_client.methods[' | ||
+ | call_info.inparams # Input Parameters | ||
+ | call_info.inparams.name | ||
+ | call_info.inparams.type | ||
+ | |||
+ | call_info.outparams # Output Parameters | ||
+ | |||
+ | </ | ||
+ | |||
+ | === Debug === | ||
+ | http:// | ||
+ | |||
+ | <code py> | ||
+ | wsdl_client.soapproxy.config.debug = 1 | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== OSA ===== | ||
+ | * [[https:// | ||
+ | * 매우 빠르고 간단해 보임. pip 설치 실패. |