Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for interaction between server and client

An interactive method and interactive system technology, applied in transmission systems, electrical components, etc., can solve problems such as poor system scalability

Active Publication Date: 2011-10-05
YONYOU UP INFORMATION TECH
View PDF3 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] 1. WCF services can only call business classes declared as service contracts. That is to say, if a Silverlight client wants to access a method of a business class on the .net server, it must declare the business class as a service contract and write In the code of WCF server and WCF client
[0010] 2. WCF services can only pass standard data types (such as integers, strings, etc.) or data classes declared as data contracts, that is to say: if you want to pass a certain data class through WCF services, you must declare the data class It is a data contract and written into the code of WCF server and client
When the business class and data class to be accessed / passed are outside this range, the WCF server and WCF client must be modified to add the corresponding service contract and data contract, resulting in poor scalability of the system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for interaction between server and client
  • Method and system for interaction between server and client
  • Method and system for interaction between server and client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0034] In the following description, many specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, therefore, the present invention is not limited to the specific embodiments disclosed below limit.

[0035] In order to increase the stability and scalability of the system, two problems need to be solved:

[0036] 1. How to realize the separation of WCF service and business class - when the Silverlight client calls the business class of the .net server through the WCF service, it does not need to define a service contract for the business class in advance; any changes in the business class of the .n...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and system for interaction. In the method, a client agent receives call information and a parameter set; a client serializer serializes the parameter set into data in a standard data type format and sends the serialized parameter set and the call information to a WCF (Windows Communication Foundation) client; the WCF client sends the parameter set and the call information to a WCF server; when receiving the parameter set and the call information, the server agent acquires a parameter type list of a business method, calls a server serializer to deserialize the serialized parameter set into a parameter set, calls a business method by using a reflection technology, transfers the parameter set to the business method, acquires the return value of an execution business method and sends the return value to the WCF server; the WCF server sends the return value to the WCF client; the WCF client sends the return value to the client agent; and finally, the return value is sent to the client. By the adoption of the method and system provided by the invention, the WCF service is separated from a data class and a business class.

Description

technical field [0001] The present invention relates to an interaction technology based on WCF service, in particular to an interaction method and an interaction system between a server and a client. Background technique [0002] Silverlight has gradually become one of the mainstream technologies for developing clients. As the basis for the interaction between Silverlight clients and .net servers, WCF (Windows Communication Foundation) services are more and more widely used. [0003] figure 1 A schematic diagram of a WCF service is shown. like figure 1 As shown, in order to realize the interaction between the Silverlight client and the .net server through the WCF service, it is necessary to create a WCF server and a WCF client. [0004] For easy understanding, the interaction between the client and the server can be compared to making a phone call. At this time, the WCF service is equivalent to a telephone line, the WCF server and WCF client are equivalent to two phones, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/06
Inventor 滕石松
Owner YONYOU UP INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products