0
web2py pysimplesoap을 사용하고 있으며 서버에서 데이터를 가져 오려고합니다. 메소드를 호출 한 후 응답이 있지만 xml에는 데이터가 없습니다. 제안 사항이 있으십니까? 여기 python web2py pysimplesoap 클라이언트 봉투 데이터
내 코드url = "https://www.xxx.ss/demo/aaa/aaa"
#
xml = ("""<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cet="http://xxxx.yy">
<soapenv:Header/>
<soapenv:Body>
<cet:GetEmployedElement>
<!--Zero or more repetitions:-->
<cet:GetEmployed>
<cet:OrganizationCode></cet:OrganizationCode>
<cet:LastName></cet:LastName>
<cet:FirstName></cet:FirstName>
<cet:AktCard></cet:AktCard>
<cet:JobAgreementType></cet:JobAgreementType>
<cet:Mferac></cet:Mferac>
</cet:GetEmployed>
</cet:GetEmployedElement>
</soapenv:Body>
</soapenv:Envelope>
""")
from gluon.contrib.pysimplesoap.client import SoapClient, SoapFault
client = SoapClient(wsdl="https://www.xxxx.yy/demo/aaa/aaa?wsdl", location="https://www.xxxx.yy", cacert=None, trace=True)
# call SOAP method
#print server.methods['getEmployed']
#print client
print client.getEmployed()
하고 내 결과는
POST http://192.168.66.53:8380/demo/KadrisData/KadrisData
SOAPAction: "http://cetrtapot.si/getEmployed"
Content-length: 269
Content-type: text/xml; charset="UTF-8"
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header/>
<soap:Body>
</soap:Body>
</soap:Envelope>
입니다 그리고 잠시 후 내가 먼저 내가 설정하는 데 필요한 간단한 비누로
urllib2.URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>