home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
New Webinterface
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="thechad" data-source="post: 136016" data-attributes="member: 11382"><p>Hi All,</p><p></p><p>I have made some progress with the web server and have begun developing some web services to access the MyTV Database using TVDatabase.dll. </p><p></p><p>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.</p><p></p><p>System.InvalidOperationException: TvDatabase.Channel cannot be serialized because it does not have a parameterless constructor.</p><p></p><p>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:</p><p></p><p>No overload for method 'Channel' takes '0' arguments</p><p></p><p>Would really appreciate some help on this one.</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="thechad, post: 136016, member: 11382"] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
New Webinterface
Contact us
RSS
Top
Bottom