Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF and Python

Tags:

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

like image 894
bhadra Avatar asked Nov 09 '08 17:11

bhadra


People also ask

What is WCF used for?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.

Can WCF Service consume Java client?

For Java client application, I think you can generate the proxy class from Eclipse and invoke the call to WCF service. The general steps are as follows: Prepare the WCF service and run the service. Create the Java client application in Eclipse IDE, and name the project, like WCFClientApp in this case.

What is WCF in Visual Studio?

Visual Studio provides tools for working with Windows Communication Foundation (WCF) and WCF Data Services, Microsoft technologies for creating distributed applications.


1 Answers

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.

like image 189
r3nrut Avatar answered Sep 22 '22 18:09

r3nrut