I didn't do the IIS part either, I only registered the object directly with WCF 
server and had it listen on an http port, listening for soap messages and that 
works great with Jan CTP, but not Feb.

M.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Tarlano
Sent: Monday, February 27, 2006 1:39 PM
To: Discussion of IronPython
Cc: Discussion of IronPython
Subject: Re: [IronPython] WCF Service Contracts implemented using IronPython

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
> users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> users mailing list
> users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to