WCF and Python

后端 未结 7 546

Is there any example code of a cpython (not IronPython) client which can call Windows Communication Foundation (WCF) service?

相关标签:
7条回答
  • 2020-12-05 08:08

    I used suds.

    from suds.client import Client
    
    print "Connecting to Service..."
    wsdl = "http://serviceurl.com/service.svc?WSDL"
    client = Client(wsdl)
    result = client.service.Method(variable1, variable2)
    print result
    

    That should get you started. I'm able to connect to exposed services from WCF and a RESTful layer. There needs to be some data massaging to help do what you need, especially if you need to bind to several namespaces.

    0 讨论(0)
提交回复
热议问题