Hi All,
I have made some progress with the web server and have begun developing some web services to access the MyTV Database using TVDatabase.dll.
I have tested some simple web services from python on the Xbox like Echo(), Add(int a, int b) and Split(string SplitString) and all work fine. My next test was to grab a channel list from Mediaportal and this is where I hit a snag. It appears that the Channel class is not serializable as it does not have a parameterless constructor.
System.InvalidOperationException: TvDatabase.Channel cannot be serialized because it does not have a parameterless constructor.
I have not worked with web services before some I am a bit lost, Is the solution to this to get the MP devs to add a parameterless constructor to MP's classes or can I somehow inherit from Channel my own class like WebChannel and give it a parameterless constructor. I have tried to inherit but am hitting problems with:
No overload for method 'Channel' takes '0' arguments
Would really appreciate some help on this one.
Thanks
I have made some progress with the web server and have begun developing some web services to access the MyTV Database using TVDatabase.dll.
I have tested some simple web services from python on the Xbox like Echo(), Add(int a, int b) and Split(string SplitString) and all work fine. My next test was to grab a channel list from Mediaportal and this is where I hit a snag. It appears that the Channel class is not serializable as it does not have a parameterless constructor.
System.InvalidOperationException: TvDatabase.Channel cannot be serialized because it does not have a parameterless constructor.
I have not worked with web services before some I am a bit lost, Is the solution to this to get the MP devs to add a parameterless constructor to MP's classes or can I somehow inherit from Channel my own class like WebChannel and give it a parameterless constructor. I have tried to inherit but am hitting problems with:
No overload for method 'Channel' takes '0' arguments
Would really appreciate some help on this one.
Thanks