- Dec 03 Thu 2020 12:25
javathrowexception retry
- Nov 25 Wed 2020 17:28
git practice
- Nov 25 Wed 2020 15:50
python soap client using zeep ignore https
suds is going to be eliminated. here is a sample code for using python soap client:zeep. If you need.take it. I am not lucky. read many doc. those are no work. finally this one is OK.If you need, just try it. import json import requests import ssl import requests import traceback import json import pprint import urllib3 import datetime import os from zeep import Client from requests import Session from zeep.transports import Transport session = Session() session.verify = False transport = Transport(session=session) #from suds.client import Client requests.packages.urllib3.disable_warnings() urllib3.disable_warnings() from requests import Session from zeep.transports import Transport from zeep import Client DSM_USERNAME = "masteradmin" DSM_PASSWORD = "Apple2007" session = Session() #session.verify = False transport = Transport(session=session) client = Client(WSDLFile, transport=transport, strict=False) def nowStr(): return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") def getdsmid(): WSDLFile="https://18.237.128.117:443/webservice/Manager?WSDL"
if hasattr(ssl, '_create_unverified_context'): ssl._create_default_https_context = ssl._create_unverified_context try: #Client.transport.session.verify = False _manager = Client(WSDLFile) client.authenticate(DSM_USERNAME, DSM_PASSWORD)
_manager.service,yourAPI()
- Nov 19 Thu 2020 10:27
git everything up-to-date but not reall pushed
- Aug 21 Tue 2018 20:32
install postgresql 9.6 on RHEL 7
install postgresql
ensure /varlib/pgsql space is ok
- Jun 25 Mon 2018 17:31
Change RHEL7/Solaris 11 x86_64 timezone
- Feb 17 Fri 2017 23:50
Red Hat Enterprise Linux, Moba, and X11Forwarding
if you see this in your mobaXterm in your console
X11-forwarding : ✘ (disabled or not supported by server)
- Aug 15 Mon 2016 21:25
國外租車
這次在加拿大租車找了好幾個網站,目標是找4門的compact car or intermediate car, 租三天。但是只剩一個星期,所以價格似乎比三個星期前高了一點點 .
租租車很便宜,大約5000元,加上全險也不貴。但是因為都在中國,怕申請出保的話也不容易申請,所以還是沒選。
- Apr 25 Mon 2016 08:42
外行人換自行車 後變速器