Ich benutze web2py pysimplesoap und ich versuche, Daten vom Server zu bekommen. Nachdem ich die Methode aufgerufen habe, erhalte ich eine Antwort, aber im XML sind keine Daten enthalten. Irgendwelche Vorschläge?Python web2py pysimplesoap Client Umschlag Daten
Hier ist mein Code
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()
und mein Ergebnis ist
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>
Und nach einer Weile bekomme ich ein Timeout mit
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>