CN103002047B - A kind of RPC formulas web server architecture method - Google Patents

A kind of RPC formulas web server architecture method Download PDF

Info

Publication number
CN103002047B
CN103002047B CN201210553595.4A CN201210553595A CN103002047B CN 103002047 B CN103002047 B CN 103002047B CN 201210553595 A CN201210553595 A CN 201210553595A CN 103002047 B CN103002047 B CN 103002047B
Authority
CN
China
Prior art keywords
soap
web server
rpc
formulas
server architecture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210553595.4A
Other languages
Chinese (zh)
Other versions
CN103002047A (en
Inventor
张珠明
郝众望
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Huizhi Network Technology Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201210553595.4A priority Critical patent/CN103002047B/en
Publication of CN103002047A publication Critical patent/CN103002047A/en
Application granted granted Critical
Publication of CN103002047B publication Critical patent/CN103002047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of RPC formulas web server architecture method, by the WEB page it is abstract be contain in object, the object it is all with business and the related configuration information of application;After the completion of abstract, corresponding configuration information is encapsulated in the SOAP specified a bag by the client using end, and the SOAP bags are sent into the SOAP service device end;The method called and configuration information are taken out after being parsed to the SOAP bags received in the SOAP service device end;The method called and configuration information are sent to lower floor's application module, finishing service configuration by the SOAP service device end.This invention simplifies the process that web server architecture is analyzed data message, a business or applied analysis only need to be carried out, you can call the application module of bottom.

Description

A kind of RPC formulas web server architecture method
Technical field
The present invention relates to WEB architecture technologies, more particularly to a kind of RPC formulas web server architecture method.
Background technology
WEB service(WEB Service)It is a kind of technology of Service-Oriented Architecture Based, service is provided by standard WEB agreements, Ensureing the application service of different platform can interact.Defined according to W3C, WEB service should be a software systems, to support Interoperability between network different machines.Network service is typically many application programming interfaces(API)Composition, they pass through net The remote server of network, performs the request that client is submitted.
WEB services have three kinds of means:Remote procedure call(RPC), Service-Oriented Architecture Based(SOA)And declarative state Transfer(REST).
Remote procedure call(RPC)- provide a distributive function/method interface for WEB service and called for user.This It is a kind of more traditional mode, generally, RPC interfaces is defined in WSDL(Similar to the XML-RPC of early stage).Essence On, user's request is directly translated into function/method that a language-specific is write by RPC modes using a simple mapping.
Service-Oriented Architecture Based(SOA)- now, industry is relatively concerned with deferring to Service-Oriented Architecture Based(Service- Oriented Architecture, SOA)To build WEB service.In which, communication is, by message-driven, and to be no longer certain Individual action or method call, this WEB service are also referred to as " message-oriented service ".
Declarative state transfer(Representational State Transfer, REST)- REST WEB service classes Be similar to HTTP or other similar agreements, interface be in one group of widely used standard for calling, such as HTTP GET, PUT, POST、DELETE.Which is paid close attention to be interacted with those stable resources, rather than message or action.
RPC formula WEB services(RPC-style WEB Service)Generally an envelope for being full of data is received from client (envelope), then beam back a same envelope for being full of data.RPC formula frameworks mean:Believe in method Information And Action domain Breath is all in envelope or header(headers)In, specifically using which kind of envelope, classification here is had no effect on, but HTTP is one Common envelope form is planted, and another common envelope form is SOAP, and SOAP envelopes are placed in HTTP envelopes, on HTTP Transmit SOAP documents.The service of each RPC formula uses the vocabulary of oneself, and just as computer program, and REST formulas WEB service is then On the contrary, they share a set of standard vocabulary, i.e. HTTP method, each object in the service of REST formulas has connecing substantially for unification Mouthful.
The web server architecture taken in embedded systems at present is mainly the side mixed with REST or REST and RPC Formula, basic framework and data analysis process is as follows:
First, user inputs the address for the page to be configured in terminal, that is, passes through a series of static or dynamic The page configuration information is sent to WEB server by http protocol;
Then, the analysis of WEB service end is received after the method methods called in HTTP message, acquisition methods again to message In the configuration information stored with html format analyzed, each functional module is finally sent configuration information to, so that real The configuration of existing business.
In the system of embedded device, it is contemplated that the finiteness of chip processing capabilities and memory space, and call each The complexity of bottom application is planted, this web server architectures of REST there may be problems with:
When needing to carry out excessive configuration, REST service framework needs to set up multiple WEB pages to coordinate different answer With, it is therefore desirable to the resource of occupancy is relatively more;
The process of client operation is handled in REST service framework or the hybrid-type service architecture of REST and RPC to be needed to divide Into two parts, the http/https messages issued for user, the first step needs to analyze the method called in the message, comes area Separate the different method such as put, post, delete;Second step then needs to analyze by analyzing the content in http messages Go out different applications, so as to realize the operation to bottom different business different application.Such mode shows in embedded systems So compare waste of resource, complexity is also than high.
The content of the invention
For above-mentioned problem, it is an object of the invention to provide a kind of RPC formulas web server architecture method, based on embedding The service architecture of the RPC formulas of embedded system exploitation can more rapidly and simply realize calling for underlying services, relative section The limited resources of embedded device have been saved, the basic framework of WEB service is simplified, and have reduced service resolution and answering for realizing Miscellaneous degree.
The purpose of the present invention is achieved through the following technical solutions:
A kind of RPC formulas web server architecture method, wherein, build on a kind of RPC formulas web server architecture, the RPC formulas Web server architecture from top to bottom includes WEB page, SOAP service device and lower floor's application module, and the WEB page makes positioned at client With end, the RPC formulas web server architecture method comprises the following steps:
By the WEB page it is abstract be object, contain in the object all related with application with business with confidence Breath;
After the completion of abstract, corresponding configuration information is encapsulated in the SOAP specified a bag by the client using end, and The SOAP bags are sent to by the SOAP service device end by http/https agreements;
The method called and configuration information are taken out after being parsed to the SOAP bags received in the SOAP service device end;
The method called and configuration information are sent to lower floor's application module by the SOAP service device end, are completed Business configuration.
Above-mentioned RPC formulas web server architecture method, wherein, the http/https agreements are used as transmission by the use of http messages Passage, any information is not carried, the SOAP encapsulations are in the http messages.
Above-mentioned RPC formulas web server architecture method, wherein, all configuration informations are inside the specified SOAP messages Doing the method defined accordingly includes set methods, get methods, add methods and delete methods.
Above-mentioned RPC formulas web server architecture method, wherein, SOAP service device inner set WEB server module and Application service module.
Above-mentioned RPC formulas web server architecture method, wherein, the SOAP service device end is by the method called and configuration Information is sent to lower floor's application module, and calls the corresponding application service module to perform related operation, completes industry Business configuration.
Compared with the prior art, the beneficial effects of the present invention are:
1st, the process that web server architecture is analyzed data message is simplified, only a business or application need to be carried out Analysis, you can call the application module of bottom.
2nd, web server architecture is made and specifically using unrelated, it is not necessary to specific provided in REST formula service architectures The configuration page, intuitively can be configured according to business or data model;
3rd, in the case where keeping web server architecture constant, corresponding tune can be done for different business or agreement It is whole.
Brief description of the drawings
Fig. 1 is the structural representation of RPC formulas web server architecture of the present invention;
Fig. 2 is the schematic process flow diagram of RPC formulas web server architecture method of the present invention.
Embodiment
With reference to schematic diagram and concrete operations embodiment, the invention will be further described.
A kind of RPC formulas web server architecture method of the present invention, builds on a kind of RPC formulas web server architecture, such as Fig. 1 institutes Show, RPC formulas web server architecture from top to bottom includes WEB page, SOAP service device and lower floor's application module, WEB page is located at visitor Family uses end, WEB server module and application service mould in the original REST formulas WEB frameworks of SOAP service device inner set Block.
In the preferred embodiment of the present invention, RPC formula web server architecture methods comprise the following steps:
By WEB page it is abstract be object, in the present system it is specific it is abstract be contain in objects, the objects it is all To business and using related configuration information.
After the completion of abstract, corresponding configuration information is encapsulated in the SOAP specified a bag by client using end, and is passed through SOAP bags are sent to SOAP service device end by http/https agreements.Http messages herein are only used as transmission channel, do not take With any information, in the SOAP bags of all configuration information in http messages, SOAP encapsulations are in http messages In hearders.Original http various method are not used here, but do corresponding inside specified SOAP messages Definition, such as be defined as the various methods such as set, get, add, delete, be typically conventional definition method, while also wrapping The value of various configuration informations and parameter is contained.
The method called and configuration information are taken out after being parsed to the SOAP bags received in SOAP service device end.Final SOAP The method called and configuration information are sent to lower floor's application module by server end, and call corresponding application service module to perform Related operation, finishing service configuration.
This invention simplifies the process that web server architecture is analyzed data message, only need to carry out a business or Applied analysis, you can call the application module of bottom;Make web server architecture and specifically using unrelated, it is not necessary in REST The specific configuration page provided in formula service architecture, intuitively can be configured according to business or data model; In the case of keeping web server architecture constant, corresponding adjustment can be done for different business or agreement.
The specific embodiment of the present invention is described in detail above, but the present invention is not restricted to tool described above Body embodiment, it is intended only as example.To those skilled in the art, any equivalent modifications and replacement are also all in the present invention Category among.Therefore, made impartial conversion and change, should all cover without departing from the spirit and scope of the invention In the scope of the present invention.

Claims (3)

1. a kind of RPC formulas web server architecture method, it is characterised in that build on a kind of RPC formulas web server architecture, described RPC formulas web server architecture from top to bottom includes WEB page, SOAP service device and lower floor's application module, and the WEB page is located at Client uses end, and the RPC formulas web server architecture method comprises the following steps:
By the WEB page it is abstract be object, contain in the object all with business and the related configuration information of application;
After the completion of abstract, corresponding configuration information is encapsulated in the SOAP specified a bag by the client using end, and is passed through The SOAP bags are sent to SOAP service device end by http/https agreements;
The method called and configuration information are taken out after being parsed to the SOAP bags received in the SOAP service device end;
The method called and configuration information are sent to lower floor's application module, finishing service by the SOAP service device end Configuration;
The http/https agreements do not carry any information, the SOAP encapsulations by the use of http messages as transmission channel In the http messages;
The SOAP service device inner set WEB server module and application service module.
2. RPC formulas web server architecture method as claimed in claim 1, it is characterised in that all configuration informations are specified The method defined accordingly is done inside SOAP messages includes set methods, get methods, add methods and delete methods.
3. RPC formulas web server architecture method as claimed in claim 1, it is characterised in that adjusted described at the SOAP service device end Method and configuration information are sent to lower floor's application module, and call the corresponding application service module to perform correlation Operation, finishing service configuration.
CN201210553595.4A 2012-12-19 2012-12-19 A kind of RPC formulas web server architecture method Active CN103002047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210553595.4A CN103002047B (en) 2012-12-19 2012-12-19 A kind of RPC formulas web server architecture method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210553595.4A CN103002047B (en) 2012-12-19 2012-12-19 A kind of RPC formulas web server architecture method

Publications (2)

Publication Number Publication Date
CN103002047A CN103002047A (en) 2013-03-27
CN103002047B true CN103002047B (en) 2017-10-31

Family

ID=47930180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210553595.4A Active CN103002047B (en) 2012-12-19 2012-12-19 A kind of RPC formulas web server architecture method

Country Status (1)

Country Link
CN (1) CN103002047B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333592A (en) * 2014-11-04 2015-02-04 中国电子科技集团公司第二十九研究所 Servitization method of electromagnetic terminal
CN106970843B (en) * 2016-01-14 2020-07-24 阿里巴巴集团控股有限公司 Remote calling method and device
CN107179951A (en) * 2016-03-09 2017-09-19 北京京东尚科信息技术有限公司 Remote procedure calling (PRC) method and device
CN109783375B (en) * 2018-12-27 2022-04-12 四川驹马科技有限公司 Data analysis and simulation method
CN111414261B (en) * 2020-03-18 2023-08-22 政采云有限公司 Cross-network calling method and device of distributed system and related components

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779041A (en) * 2012-06-20 2012-11-14 北京市计算中心 Engineering calculation system and method
CN102799764A (en) * 2012-06-20 2012-11-28 北京市计算中心 Web-based engineering calculation system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7797450B2 (en) * 2002-10-04 2010-09-14 Oracle International Corporation Techniques for managing interaction of web services and applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779041A (en) * 2012-06-20 2012-11-14 北京市计算中心 Engineering calculation system and method
CN102799764A (en) * 2012-06-20 2012-11-28 北京市计算中心 Web-based engineering calculation system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Web自动化测试中使用groovy实现页面的对象化》;百度技术;《Web自动化测试中使用groovy实现页面的对象化》;20101227;第1页第19行-第4页第4行 *
REST和RPC:两种Web服务架构风格比较分析;冯新扬,沈建京;《小型微型计算机***》;20100730;第31卷(第7期);全文 *

Also Published As

Publication number Publication date
CN103002047A (en) 2013-03-27

Similar Documents

Publication Publication Date Title
CN103002047B (en) A kind of RPC formulas web server architecture method
CN104601522B (en) Implementation method that mobile client interacts with operation system, apparatus and system
CN101258478B (en) High level graphics stream
CN110022289A (en) Data transmission method, apparatus and system
US20040111533A1 (en) Transformations as web services
CN103268230B (en) Can the method for cloud computing information management platform of extended theorem for building
CN108337236A (en) A kind of gRPC call methods and device based on Protobuf and HTTP/1.1
CN101946248A (en) Method and apparatus for providing API service and making API mash-up, and computer readable recording medium thereof
CN105808365A (en) HIS (Hospital Information System) interface calling method and HIS interface configuration method
CN106686021B (en) Service calling method and gateway
CN107632875A (en) Electric business Interface integration method, system, computer equipment, readable storage medium storing program for executing
CN104731606A (en) System and method based on identification grasping technology to achieve enterprise application integration management
CN109086147A (en) Service interface call method, device and the storage medium of application program
US8972487B2 (en) Automated framework for testing enterprise services consumer technologies
EP1815352A1 (en) Electronic equipment and method for carrying out communication with electronic equipment
CN110020243A (en) Querying method, device, Internet of Things server and the storage medium of internet of things data
CN109725887A (en) Data interactive method, device and terminal device based on message research and development frame
CN103561113B (en) The generation method and device of Web Service interface
CN101150576B (en) Network server access system and its method
CN104980511B (en) A kind of game data access method, system and game web page server
CN106453250A (en) Processing method of big data RPC (Remote Procedure Call Protocol)
WO2017084515A1 (en) Method and device for transmitting data code stream
CN112799734B (en) Flow management method, image processing method, and corresponding platform and device thereof
Zhang et al. Web services workflow with result data forwarding as resources
CN113918245A (en) Data calling method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201104

Address after: No. 2-3167, zone a, Nonggang City, No. 2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Guangfulin road 4855 Lane 20, No. 90

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20130327

Assignee: Hangzhou Bolian Intelligent Technology Co.,Ltd.

Assignor: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Contract record no.: X2021330000763

Denomination of invention: An RPC web service architecture method

Granted publication date: 20171031

License type: Common License

Record date: 20211117

Application publication date: 20130327

Assignee: ZHEJIANG SUPCON TECHNOLOGY Co.,Ltd.

Assignor: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Contract record no.: X2021330000764

Denomination of invention: An RPC web service architecture method

Granted publication date: 20171031

License type: Common License

Record date: 20211117

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right

Effective date of registration: 20230419

Address after: 300456 Tianjin Binhai New Area Tianjin Pilot Free Trade Zone (Central Business District) Baoyuan Building, No. 3699 Xinhua Road, Tianjin YO-16097

Patentee after: Tianjin Huizhi Network Technology Co.,Ltd.

Address before: No.2-3167, area a, Nonggang City, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province, 318000

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right