aramex

Exception in port type using Suds

泄露秘密 提交于 2020-01-04 19:16:45
问题 I am trying to connect to Aramex shipping SOAP API using Python Suds using following code: import suds from suds.client import Client client = Client('file:///home/test/test_wsdl_aramex/shipments-tracking-api-wsdl.wsdl',cache=None) But after starting, I get the following exception: > raise Exception("portType '%s', not-found" % self.type) Exception: portType 'i0:Service_dd1_0', not-found The WSDL file source can be found here. 回答1: Error is here: <wsdl:binding type="i0:Service_1_0" name=

How can I use the Aramex API with WSDL and Python?

ぃ、小莉子 提交于 2019-12-13 05:53:55
问题 I found some PHP example code about the Aramex Shipping services and their shipping API on their website. I'm testing my API credentials, but I'm getting the error below. Here is the example code: import xml, fpconst, logging from SOAPpy import WSDL from suds.client import Client logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG) url = "http://localhost/shipping-services-api-wsdl.wsdl" client = Client(url) client.sd[0].service.setlocation('http:/