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
Development
Improvement Suggestions
Use WebService between Server and Client
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="chrispi" data-source="post: 126209" data-attributes="member: 20307"><p>This is definitely the right way to go. For WCF this is called a "operation contract".</p><p></p><p>There is no need to define a new protocol based on a text string. WCF is doing this in the background: It converts all parameters of a call to a XML message using SOAP format (which actualy produces a simple string containing XML) </p><p></p><p>On the client side you can create a proxy class by using a WCF tool that contains a method for each Web Service method.</p><p></p><p>You can also reference a asembly containing the interface definition on both sides (client and server). In this case you will have a stronger coupling between Client and Server. You can use complex .NET types like DataSet, Guid, ArrayList or List<> but loose compatibility. E. g. a Unix system will not be able to consume/understand a .NET DataSet-Object. When using compelex types this approach is more "Remoting" than "Web Service" like.</p><p></p><p>For best compatibility you schould only use intrinsic types like int, string or double in the interface definition. User defined complex types must be attibuted as "Data contract" and schould contain only intrinsic types to get 100% Web Service compatibility.</p><p></p><p>Regards,</p><p>Christoph</p></blockquote><p></p>
[QUOTE="chrispi, post: 126209, member: 20307"] This is definitely the right way to go. For WCF this is called a "operation contract". There is no need to define a new protocol based on a text string. WCF is doing this in the background: It converts all parameters of a call to a XML message using SOAP format (which actualy produces a simple string containing XML) On the client side you can create a proxy class by using a WCF tool that contains a method for each Web Service method. You can also reference a asembly containing the interface definition on both sides (client and server). In this case you will have a stronger coupling between Client and Server. You can use complex .NET types like DataSet, Guid, ArrayList or List<> but loose compatibility. E. g. a Unix system will not be able to consume/understand a .NET DataSet-Object. When using compelex types this approach is more "Remoting" than "Web Service" like. For best compatibility you schould only use intrinsic types like int, string or double in the interface definition. User defined complex types must be attibuted as "Data contract" and schould contain only intrinsic types to get 100% Web Service compatibility. Regards, Christoph [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Use WebService between Server and Client
Contact us
RSS
Top
Bottom