CN104463670A - Websocket-based bank preposition transaction system construction method - Google Patents

Websocket-based bank preposition transaction system construction method Download PDF

Info

Publication number
CN104463670A
CN104463670A CN201410614391.6A CN201410614391A CN104463670A CN 104463670 A CN104463670 A CN 104463670A CN 201410614391 A CN201410614391 A CN 201410614391A CN 104463670 A CN104463670 A CN 104463670A
Authority
CN
China
Prior art keywords
websocket
message
server
client
building
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.)
Pending
Application number
CN201410614391.6A
Other languages
Chinese (zh)
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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201410614391.6A priority Critical patent/CN104463670A/en
Publication of CN104463670A publication Critical patent/CN104463670A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for building a bank preposed transaction system based on a Websocket, belongs to the technical field of bank preposed transaction systems, and solves the technical problem of how to introduce the Websocket into the bank preposed transaction system. The technical scheme is as follows: firstly, building a webSocket server side, building a Websocket client side and deploying a bank preposed transaction system; the method for building the webSocket server side comprises the following steps: initializing a WebSocket Server, defining a set Open, a Server Close, a Server Message and a set Error Message processing function, designating the WebSocket Server Message processing function, starting the WebSocket service and calling the WebSocket Server. The method for building the Websocket client comprises the following steps: the method comprises the steps of obtaining an IP address and a monitoring port number of a server side, initializing a WebSocket Client, defining on Open, on Close, on Message and on Error Message processing functions, starting the WebSocket Client to establish connection, designating the WebSocket Client Message processing functions and calling the WebSocket Client.

Description

The building method of the bank preposing transaction system of a kind of sing on web socket
Technical field
The present invention relates to a kind of bank preposing transaction system, specifically the building method of the bank preposing transaction system of a kind of sing on web socket.
Background technology
Bank preposing transaction system, between peripheral subservice system and kernel business of bank system, is integrated the interface between each subservice and bank, carries out unified management, conversion to the message each subservice sent and bank core sends.General interface docking mode has HTTP length/short connection, Socket length/end connection, WebService etc.Under conventional situation, client and server Message Transmission is for realizing instant messaging, and majority adopts polling technique, the mode of intelligence transmission of traditional approach poll and long poll.Polling mode is constantly sending HTTP request to service end always, and service end all can be fed back at every turn but not necessarily carry latest data.Long polling mode is also constantly sending HTTP request to service end, and service end just can return when there being new data.Two kinds of mode service ends all initiatively can not send message to client.And the Head of HTTP request is very long, even if little content also can take a lot of bandwidth.
Peripheral subservice system is docked with bank preposing transaction system, and be all by private line access, the network bandwidth is very limited, and traditional approach is among a small circle, and when customer volume is less, operational effect is all right.But when service range expands, during multi-user's concurrent access, just some is barely satisfactory in performance, utilization factor, the speed of response for bank preposing transaction system.
WebSocket is a kind of new communication protocol of HTML5 regulation, obtains Safari at present, the support of the major browsers such as Firefox, Opera, IE.It specify Web Socket API, support the full-duplex communication between browser and server, do not need to create frequently and destroy TCP and be connected, abandoned the header part of traditional http agreement, between server and client, exchange information greatly reduces.WebSocket Message Transmission, client can send message with purpose service end, and service end initiatively can also send message to client except feeding back the message request of client in time, and message feedback at the right time.Bank preposing transaction system, except requiring to have except higher stability, security, the indexs such as response speed, concurrency performance, resource utilization also become important gradually and consider index.If WebSocket can be introduced bank preposing transaction system, will be in short supply to alleviation front-end system network bandwidth resources, improve server resource utilization factor and have very great help.
Summary of the invention
Technical assignment of the present invention is for above weak point, there is provided a kind of and Websocket is introduced bank preposing transaction system, alleviate front-end system network bandwidth resources in short supply, improve the building method of the bank preposing transaction system of a kind of sing on web socket of server resource utilization factor.
The technical solution adopted for the present invention to solve the technical problems is:
A building method for the bank preposing transaction system of sing on web socket, first builds webSocket server end, builds Websocket client, disposes bank preposing transaction system, opens bank preposition system monitor state, register system environmental information;
The method of building webSocket server end comprises the steps:
(1), initialization WebSocket Server object, parameter is exactly the IP address of server and the port numbers that will monitor;
(2), Sever Open, Server Close, Server Message, Sever Error message processing function is defined;
(3) WebSocket Server message processing function, is specified;
(4) WebSocket service, is started;
(5), call WebSocket Server.send method, can realize sending message to client;
The method of building Websocket client comprises the steps:
(1), IP at server end address and listening port number is obtained;
(2), initialization WebSocket Client;
(3), on Open, on Close, on Message, on Error message processing function is defined;
(4), start WebSocket Client client to connect;
(5) WebSocket Client message processing function, is specified;
(6), call WebSocket Client.send method, can realize sending message to server end.
Build in the method for webSocket server end, webSocket server end triggers Server Message message automatically when client message arrives, connect when opening and trigger Sever Open message, trigger Server Close message during connection closed, when mistake appears in message transmitting process, trigger Sever Error message.
Build in the method for Websocket client, Websocket client triggers On message message automatically when server end message arrives, connect when opening and trigger on Open message, during connection closed, trigger on Close message, when mistake appears in message transmitting process, trigger on Error message.
Subservice system will be connected into bank preposing transaction system and first register, after succeeding in registration, obtain WebSocket service environment information, then from environmental information, ip address and port numbers is parsed, then connect, after connection establishment success, subservice system and bank preposing transaction system both sides can real-time Communication for Power, sign off disconnects, releasing resource.
The building method of the bank preposing transaction system of a kind of sing on web socket of the present invention, Websocket is introduced bank preposing transaction system, alleviate front-end system network bandwidth resources in short supply, improve server resource utilization factor, thus, have good value for applications.
Embodiment
Below in conjunction with specific embodiment, the invention will be further described.
Embodiment 1:
The building method of the bank preposing transaction system of a kind of sing on web socket of the present invention, first build webSocket server end, build Websocket client, dispose bank preposing transaction system, open bank preposition system monitor state, register system environmental information;
The method of building webSocket server end comprises the steps:
(1), initialization WebSocket Server object, parameter is exactly the IP address of server and the port numbers that will monitor;
(2), Sever Open, Server Close, Server Message, Sever Error message processing function is defined;
(3) WebSocket Server message processing function, is specified;
(4) WebSocket service, is started;
(5), call WebSocket Server.send method, can realize sending message to client;
The method of building Websocket client comprises the steps:
(1), IP at server end address and listening port number is obtained;
(2), initialization WebSocket Client;
(3), on Open, on Close, on Message, on Error message processing function is defined;
(4), start WebSocket Client client to connect;
(5) WebSocket Client message processing function, is specified;
(6), call WebSocket Client.send method, can realize sending message to server end.
Embodiment 2:
The building method of the bank preposing transaction system of a kind of sing on web socket of the present invention, first build webSocket server end, build Websocket client, dispose bank preposing transaction system, open bank preposition system monitor state, register system environmental information;
The method of building webSocket server end comprises the steps:
(1), initialization WebSocket Server object, parameter is exactly the IP address of server and the port numbers that will monitor;
(2), Sever Open, Server Close, Server Message, Sever Error message processing function is defined;
(3) WebSocket Server message processing function, is specified;
(4) WebSocket service, is started;
(5), call WebSocket Server.send method, can realize sending message to client;
The method of building Websocket client comprises the steps:
(1), IP at server end address and listening port number is obtained;
(2), initialization WebSocket Client;
(3), on Open, on Close, on Message, on Error message processing function is defined;
(4), start WebSocket Client client to connect;
(5) WebSocket Client message processing function, is specified;
(6), call WebSocket Client.send method, can realize sending message to server end.
Build in the method for webSocket server end, webSocket server end triggers Server Message message automatically when client message arrives, connect when opening and trigger Sever Open message, trigger Server Close message during connection closed, when mistake appears in message transmitting process, trigger Sever Error message.
Build in the method for Websocket client, Websocket client triggers On message message automatically when server end message arrives, connect when opening and trigger on Open message, during connection closed, trigger on Close message, when mistake appears in message transmitting process, trigger on Error message.
Subservice system will be connected into bank preposing transaction system and first register, after succeeding in registration, obtain WebSocket service environment information, then from environmental information, ip address and port numbers is parsed, then connect, after connection establishment success, subservice system and bank preposing transaction system both sides can real-time Communication for Power, sign off disconnects, releasing resource.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of the building method of the bank preposing transaction system of any a kind of sing on web socket according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (4)

1. the building method of the bank preposing transaction system of a sing on web socket, it is characterized in that first building webSocket server end, building Websocket client, dispose bank preposing transaction system, open bank preposition system monitor state, register system environmental information;
The method of building webSocket server end comprises the steps:
(1), initialization WebSocket Server object, parameter is exactly the IP address of server and the port numbers that will monitor;
(2), Sever Open, Server Close, Server Message, Sever Error message processing function is defined;
(3) WebSocket Server message processing function, is specified;
(4) WebSocket service, is started;
(5), call WebSocket Server.send method, can realize sending message to client;
The method of building Websocket client comprises the steps:
(1), IP at server end address and listening port number is obtained;
(2), initialization WebSocket Client;
(3), on Open, on Close, on Message, on Error message processing function is defined;
(4), start WebSocket Client client to connect;
(5) WebSocket Client message processing function, is specified;
(6), call WebSocket Client.send method, can realize sending message to server end.
2. the building method of the bank preposing transaction system of a kind of sing on web socket according to claim 1, it is characterized in that building in the method for webSocket server end, webSocket server end triggers Server Message message automatically when client message arrives, connect when opening and trigger Sever Open message, trigger Server Close message during connection closed, when mistake appears in message transmitting process, trigger Sever Error message.
3. the building method of the bank preposing transaction system of a kind of sing on web socket according to claim 1, it is characterized in that building in the method for Websocket client, Websocket client triggers On message message automatically when server end message arrives, connect when opening and trigger on Open message, trigger on Close message during connection closed, when mistake appears in message transmitting process, trigger on Error message.
4. the building method of the bank preposing transaction system of a kind of sing on web socket according to claim 1, it is characterized in that subservice system will be connected into bank preposing transaction system and first register, after succeeding in registration, obtain WebSocket service environment information, then from environmental information, parse ip address and port numbers, then connect, after connection establishment success, subservice system and bank preposing transaction system both sides can real-time Communication for Power, and sign off disconnects, releasing resource.
CN201410614391.6A 2014-11-05 2014-11-05 Websocket-based bank preposition transaction system construction method Pending CN104463670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410614391.6A CN104463670A (en) 2014-11-05 2014-11-05 Websocket-based bank preposition transaction system construction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410614391.6A CN104463670A (en) 2014-11-05 2014-11-05 Websocket-based bank preposition transaction system construction method

Publications (1)

Publication Number Publication Date
CN104463670A true CN104463670A (en) 2015-03-25

Family

ID=52909661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410614391.6A Pending CN104463670A (en) 2014-11-05 2014-11-05 Websocket-based bank preposition transaction system construction method

Country Status (1)

Country Link
CN (1) CN104463670A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657393A (en) * 2017-02-08 2017-05-10 浪潮(苏州)金融技术服务有限公司 Device remote interaction system and method based on Websocket
CN106878378A (en) * 2016-12-26 2017-06-20 贵州银行股份有限公司 Scatterplot processing method in network service management
WO2017166095A1 (en) * 2016-03-30 2017-10-05 李昕光 Server front-end method
WO2017166099A1 (en) * 2016-03-30 2017-10-05 李昕光 Server front positioning method
CN111222074A (en) * 2020-01-09 2020-06-02 山东汇贸电子口岸有限公司 Message pushing method and system based on Websocket protocol
CN114915651A (en) * 2021-02-09 2022-08-16 武汉斗鱼网络科技有限公司 Websocket management method and device, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684080A (en) * 2004-06-25 2005-10-19 中国银行股份有限公司 System and method for providing capital remittance service in network
CN1932875A (en) * 2006-10-09 2007-03-21 杭州东信金融技术服务有限公司 Prepositional system based on finance industry
CN102801799A (en) * 2012-08-03 2012-11-28 国电南瑞科技股份有限公司 Real-time monitoring system based on B/S architecture
CN103139051A (en) * 2013-03-22 2013-06-05 南京信通科技有限责任公司 Instant messaging communication method based on Websocket protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684080A (en) * 2004-06-25 2005-10-19 中国银行股份有限公司 System and method for providing capital remittance service in network
CN1932875A (en) * 2006-10-09 2007-03-21 杭州东信金融技术服务有限公司 Prepositional system based on finance industry
CN102801799A (en) * 2012-08-03 2012-11-28 国电南瑞科技股份有限公司 Real-time monitoring system based on B/S architecture
CN103139051A (en) * 2013-03-22 2013-06-05 南京信通科技有限责任公司 Instant messaging communication method based on Websocket protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WEB8I: "WebSocket简单使用", 《百度文库》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166095A1 (en) * 2016-03-30 2017-10-05 李昕光 Server front-end method
WO2017166099A1 (en) * 2016-03-30 2017-10-05 李昕光 Server front positioning method
CN106878378A (en) * 2016-12-26 2017-06-20 贵州银行股份有限公司 Scatterplot processing method in network service management
CN106878378B (en) * 2016-12-26 2020-02-21 贵州银行股份有限公司 Scatter processing method in network communication management
CN106657393A (en) * 2017-02-08 2017-05-10 浪潮(苏州)金融技术服务有限公司 Device remote interaction system and method based on Websocket
CN111222074A (en) * 2020-01-09 2020-06-02 山东汇贸电子口岸有限公司 Message pushing method and system based on Websocket protocol
CN114915651A (en) * 2021-02-09 2022-08-16 武汉斗鱼网络科技有限公司 Websocket management method and device, electronic device and storage medium
CN114915651B (en) * 2021-02-09 2023-09-26 武汉斗鱼网络科技有限公司 WebSocket management method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104463670A (en) Websocket-based bank preposition transaction system construction method
EP2645636B1 (en) Home gateway, cloud server, and method for communication therebetween
CN101291335B (en) Method and apparatus for acquiring dynamic data of server based on browser
CN105610888A (en) Method of using socket to push message based on Android and system thereof
CN107528891B (en) Websocket-based automatic clustering method and system
US10148565B2 (en) OPENFLOW communication method and system, controller, and service gateway
CN103905333A (en) Internet of things multi-protocol access transform device and control method thereof
CN104270355A (en) Cross-safety-zone data transmission method based on network bus
US10574518B2 (en) Method and apparatus of performing remote management of a managed machine
CN103312528A (en) Heartbeat message sending method and user terminal
CN104539510A (en) Multi-protocol-based information pushing system and method
CN102594886B (en) Method and device for direct communication between browsers, and communication system
WO2013178099A1 (en) System, method, client and service centre for realizing remote desktop
CN103297390A (en) Method for enabling server to be connected with client-sides reversely
CN110233750B (en) Private cloud management system and method
CN103699450A (en) Linux adaptive component communication method
CN102917082A (en) Information push method and system of transit-network address translation
CN104348645A (en) Server and data transmission method of server
CN108989157B (en) Method and device for controlling intelligent equipment
CN102523122B (en) Remote management method of terminal equipment in wide area network and management apparatus thereof
CN110417875B (en) Method, system, equipment and storage medium for docking between cloud servers
US20130232235A1 (en) Method, device and system for remote server managing wireless terminal
CN104009956A (en) Communication method based on embedded multi-core co-processing gatekeeper system
CN105577433B (en) A kind of ACS cluster management method, device and system
CN105306442A (en) Proxy server and command transmission methods

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325

WD01 Invention patent application deemed withdrawn after publication