Martin, I haven't registered the server object with the IIS hosting container. I will keep you posted ;o)
A. On 2/27/06, Martin Maly <[EMAIL PROTECTED]> wrote: > 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 :) > > Thanks! > Martin > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 > > Hi, > > 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 > using IronPython. > > >From the tutorial they show the following C# code as an example of a > ServiceContract. > > namespace Microsoft.ServiceModel.Samples > { > using System; > using System.ServiceModel; > [ServiceContract(Namespace = "http://Microsoft.ServiceModel.Samples")] > public interface ICalculator > { > [OperationContract] > double Add(double n1, double n2); > [OperationContract] > double Subtract(double n1, double n2); > [OperationContract] > double Multiply(double n1, double n2); > [OperationContract] > 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? > > Thanks, > > A. > _______________________________________________ > users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ > users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
