[IronPython] WCF Service Contracts implemented using IronPython
Martin.Maly at microsoft.com
Mon Feb 27 13:01:57 PST 2006
Right now, you can't do that in IronPython. We don't support adding attributes yet.
As for the February CTP. Were you able to register your server object without a problem and talk to it from Python client (after generating the proxy)? With the February CTP I hit the problem that if I have singleton server, another custom attribute is required on it. It is not true for January CTP. How did you get that working on Feb CTP? I am really curious :)
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Anthony Tarlano
Sent: Sunday, February 26, 2006 8:03 AM
To: Discussion of IronPython
Subject: [IronPython] WCF Service Contracts implemented using IronPython
I just downloaded the Feb CTP WinFx SDK and I was working my way
through the WCF documentation. My goal is to create a WCF service
>From the tutorial they show the following C# code as an example of a
[ServiceContract(Namespace = "http://Microsoft.ServiceModel.Samples")]
public interface ICalculator
double Add(double n1, double n2);
double Subtract(double n1, double n2);
double Multiply(double n1, double n2);
double Divide(double n1, double n2);
I used csc to compile it into a DLL assembly, successfully used the
clr.Add.. methods to access the interface, and Implemented the
operations in python.
But what I would really like to do next is translate the service
contract code from above and use a python class and skip the step of
using C# to define my WCF ServiceContracts and the csc compiler.
My question to the group is how would I add the ServiceContract and
OperationContract declarative attributes to a python class?
users mailing list
users at lists.ironpython.com
More information about the users