CN102546259B - Interface parameters transmission method and device - Google Patents
Interface parameters transmission method and device Download PDFInfo
- Publication number
- CN102546259B CN102546259B CN201210019142.3A CN201210019142A CN102546259B CN 102546259 B CN102546259 B CN 102546259B CN 201210019142 A CN201210019142 A CN 201210019142A CN 102546259 B CN102546259 B CN 102546259B
- Authority
- CN
- China
- Prior art keywords
- configuration
- parameter
- character string
- interface parameters
- interface
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Abstract
The invention discloses a kind of interface parameters transmission method and device, wherein, this method includes:Separator of the transmitting terminal in character string to be sent obtains and the corresponding configuration parameter of order from character string;Interface parameters corresponding with configuration parameter is configured in the configuration template that transmitting terminal is locally stored according to the configuration parameter docking port of acquisition;Transmitting terminal will be sent to receiving terminal with the interface parameters postponed.The present invention solve the problems, such as in the prior art because can not docking port parameter carry out mobilism configuration and caused by communication process once the interface of one side of communication changes other side will be caused can not correctly to be parsed to the field received, realize the purpose that mobilism configuration is carried out to communication interface, so as to reach the purpose for when there is an end interface to change, also not interfering with parsing of the communication two party to field.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of interface parameters transmission method and device.
Background technology
At present, in the Interface design of communication system, the field name of communication, field length are typically appointed in advance
Degree, the rule then appointed according to these are communicated.However, although the exploitation when customizing of this method is very convenient,
It is not easy to extend.Because once the interface for having a side in recipient and sender changes, then will cause opposite end to institute
Some fields can not all parse.On the other hand, this field is meant that fixed, is unfavorable for realizing the interface unrelated with order
Configuration, it can not more realize the command process interface of universal class.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The invention provides a kind of interface parameters transmission method and device, at least to solve in the prior art because that can not dock
Mouthful parameter carry out mobilism configuration and cause in communication process once the interface of one side of communication change will cause other side without
The problem of method is correctly parsed to the field received.
According to an aspect of the invention, there is provided a kind of interface parameters transmission method, including:Transmitting terminal is according to be sent
Character string in separator obtained from character string and the corresponding configuration parameter of order;Transmitting terminal is according to the configuration parameter of acquisition
Interface parameters corresponding with configuration parameter is configured in the configuration template that docking port is locally stored;Transmitting terminal will connect with what is postponed
Mouth parameter is sent to receiving terminal.
Preferably, in the configuration template that transmitting terminal is locally stored according to the configuration parameter docking port of acquisition with configuration parameter pair
The step of interface parameters answered is configured includes:Obtain the position of operation command code of the transmitting terminal in character string to be sent
Extract operation command code;Transmitting terminal enters according to the configuration parameter of acquisition to interface parameters corresponding with operation command code in configuration template
Row configuration.
Preferably, after transmitting terminal will be sent to receiving terminal with the interface parameters postponed, in addition to:Transmitting terminal receives
Hold the feedback parameter sent in response to interface parameters;Acquisition and feedback parameter in the configuration template that transmitting terminal is locally stored from interface
Variate-value corresponding to the name variable of instruction;Transmitting terminal is separated by separator to the variate-value of acquisition, and by after separation
Variate-value form character string for business processing.
Preferably, the interface parameters in configuration template includes:Business variable element and/or extension variable element.
Preferably, string length of the business variable element in configuration template be fixed, extension variable element with
It is variable to put the string length in template.
According to another aspect of the present invention, there is provided a kind of interface parameters transmitting device, the device are located at transmitting terminal, bag
Include:First acquisition module, match somebody with somebody corresponding with order is obtained from character string for the separator in character string to be sent
Put parameter;Configuration module, in the configuration template that is locally stored according to the configuration parameter docking port of acquisition with configuration parameter pair
The interface parameters answered is configured;Sending module, for receiving terminal will to be sent to the interface parameters postponed.
Preferably, configuration module includes:Acquiring unit, the position for the operation command code in character string to be sent
Put acquisition operation command code;Dispensing unit, for the configuration parameter according to acquisition to corresponding with operation command code in configuration template
Interface parameters configured.
Preferably, the device also includes:Receiving module, join for receiving receiving terminal in response to the feedback that interface parameters is sent
Number;Second acquisition module, for obtaining the name variable pair with feedback parameter instruction in the configuration template that is locally stored from interface
The variate-value answered;Comprising modules, for being separated by separator to the variate-value of acquisition, and by the variate-value group after separation
Into the character string for business processing.
Preferably, the interface parameters in configuration template includes:Business variable element and/or extension variable element.
Preferably, string length of the business variable element in configuration template be fixed, extension variable element with
It is variable to put the string length in template.
In the present invention, configuration parameter is obtained from character string according to separator, further according to the configuration parameter to configuring mould
Parameter in plate is configured, so as to solve in the prior art because can not docking port parameter carry out mobilism configuration and caused by
Once the interface of one side of communication changes other side will be caused can not correctly to be parsed to the field received in communication process
The problem of, the purpose that mobilism configuration is carried out to communication interface is realized, so as to reach when there is an end interface to change,
The purpose of parsing of the communication two party to field is not interfered with, further, realizes the unrelated interface configuration of order yet.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of preferred structure block diagram of interface parameters transmitting device according to embodiments of the present invention;
Fig. 2 is a kind of preferred structure block diagram of the configuration module of interface parameters transmitting device according to embodiments of the present invention;
Fig. 3 is another preferred structure block diagram of interface parameters transmitting device according to embodiments of the present invention;
Fig. 4 is a kind of preferred flow charts of interface parameters transmission method according to embodiments of the present invention;
Fig. 5 is another preferred flow charts of interface parameters transmission method according to embodiments of the present invention;
Fig. 6 is another preferred flow charts of interface parameters transmission method according to embodiments of the present invention;
Fig. 7 is another preferred structure block diagram of interface parameters transmitting device according to embodiments of the present invention;
Fig. 8 is another preferred flow charts of interface parameters transmission method according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Embodiment 1
As shown in figure 1, the invention provides a kind of preferable interface parameters transmitting device, the device is located at transmitting terminal, wrapped
Include:First acquisition module 102, obtained for the separator in character string to be sent from character string corresponding with order
Configuration parameter;Configuration module 104, for joining in the configuration template that is locally stored according to the configuration parameter docking port of acquisition with configuration
Interface parameters is configured corresponding to number;Sending module 106, for receiving terminal will to be sent to the interface parameters postponed.
In above-mentioned preferred embodiment, configuration parameter is obtained from character string according to separator, joined further according to the configuration
Several parameters in configuration template configure, so as to solve in the prior art because can not docking port parameter carry out mobilism match somebody with somebody
Put and cause in communication process once the interface of one side of communication changes other side will to be caused can not to enter the field received
The problem of row correctly parses, the purpose that mobilism configuration is carried out to communication interface is realized, is having an end interface so as to reach
When changing, the purpose of parsing of the communication two party to field is not interfered with yet, further, realizes the unrelated interface of order
Configuration.
Preferably, configuration template is stored in configuration database or is stored in configuration file, is read by interface engine
Configuration database is taken to define data, or profile data, so as to obtain configuration template, then in conjunction with from character string to be sent
The configuration parameter corresponding with order of middle acquisition is assembled into the interface parameters postponed, will be sent out with the interface parameters postponed to opposite end
Send.Preferably, the return of opposite end is received, when handling returning result, parsing acquisition equally is carried out to the returning result received
Variate-value corresponding to corresponding name variable, then with the character string of configuration template combination producing business processing, realize to right
The dynamic parameterization processing of the returning result at end, so as to reach the request of interface parameters and respond the mesh of equal dynamic state of parameters
's.Originally it is being preferable to carry out in placement, the parameter that all orders and order need is configurable, so as in actual execution
When, it is only necessary to according to the parameter of configuration, the character string parameterized accordingly is sent, so in later maintenance, for example, newly
Increase order, modification order, can be realized by configuring class, it is no longer necessary to developed for specific instructions, reduce maintenance
Complexity.
Preferably, the separator in character string to be sent obtains and the corresponding configuration parameter of order from character string
It can realize in the following way:Parsing business sends character string to be sent, according to the separation defined between communication interface
Symbol is parsed to sent character string, obtains field independent one by one, using the independent field as corresponding to order
Configuration parameter;Interface parameters corresponding with configuration parameter in the configuration template being locally stored according to the configuration parameter docking port of acquisition
Carrying out configuration can realize in the following way:The field independent one by one obtained with parsing replaces the business in configuration template
Variable element.
In a preferred embodiment of the invention, as shown in Fig. 2 configuration module 104 includes:Acquiring unit 202, is used for
The position acquisition operation command code of operation command code in character string to be sent;Dispensing unit 204, for according to acquisition
Configuration parameter interface parameters corresponding with operation command code in configuration template is configured.
In above-mentioned preferred embodiment, using the position of operation command code find corresponding to need to configure in configuration template
Interface parameters position, the configuration parameter being then configured to interface parameters in character string, it is preferred that each order is corresponding
A set of separate configurations item, every suit separate configurations item are required for operation command code to enter with the configuration parameter parsed from character string
Row matching, so that corresponding with configuration parameter in the configuration template being locally stored according to the configuration parameter docking port of acquisition connect
Mouth parameter, which carries out configuration, accurately to be realized.
Preferably, can first judge the number of business variable element in configuration template, and with character string to be sent
The position of configuration parameter and content carry out correspondingly, obtaining operation command code, so as to which corresponding configuration parameter is write into configuration template
In the position of interface parameters corresponding to middle operation command code.
In a preferred embodiment of the invention, as shown in figure 3, interface parameters transmitting device also includes:Receiving module
302, the feedback parameter sent for receiving receiving terminal in response to interface parameters;Second acquisition module 304, for local from interface
Variate-value corresponding with the name variable of feedback parameter instruction is obtained in the configuration template of storage;Comprising modules 306, for passing through
Separator is separated to the variate-value of acquisition, and the variate-value after separation is formed into the character string for business processing.
Preferably, form for the character string of business processing can first judge to need the number of parameter fed back and
The name variable of each parameter, variate-value corresponding to needing the parameter is taken out from feedback parameter according to the variable name of parameter,
And dynamic P-string is formed according to these contents, as the character string return for business processing.Preferably,
The order that operation flow performs can also be judged according to the character string of business processing, determines the flow action of next step.Business Stream
Journey execution module, performed successively according to the execution sequence of the good operation flow of above-mentioned configuration.
In above-mentioned preferred embodiment, after feedback parameter is received, similarly parameter is entered according to configuration template
Row configuration, it is preferred that by setting separator between different variate-values so as to be thought of as the character string for business processing, always
Principle and the building form of character string to be sent be approximate, so as to unify the rule of parameter configuration.
In a preferred embodiment of the invention, the interface parameters in configuration template includes:Business variable element and/or
Extend variable element.Specifically, in configuration module, except there is a constant character string, outside business variable element, also extension becomes
Parameter is measured, extending one of variable element, important be characterized in can be according to being actually needed infinite expanding.
In a preferred embodiment of the invention, string length of the business variable element in configuration template is fixed
, string length of the extension variable element in configuration template is variable.
Embodiment 2
Based on the preferable interface parameters transmitting device shown in Fig. 1-3, present invention also offers a kind of preferable interface to join
Number transmission method, as shown in figure 4, this method specific steps include:
S402:Separator of the transmitting terminal in character string to be sent obtains configuration corresponding with order from character string
Parameter;
S404:It is corresponding with configuration parameter in the configuration template that transmitting terminal is locally stored according to the configuration parameter docking port of acquisition
Interface parameters configured;
S406:Transmitting terminal will be sent to receiving terminal with the interface parameters postponed.
In above-mentioned preferred embodiment, configuration parameter is obtained from character string according to separator, joined further according to the configuration
Several parameters in configuration template configure, so as to solve in the prior art because can not docking port parameter carry out mobilism match somebody with somebody
Put and cause in communication process once the interface of one side of communication changes other side will to be caused can not to enter the field received
The problem of row correctly parses, the purpose that mobilism configuration is carried out to communication interface is realized, is having an end interface so as to reach
When changing, the purpose of parsing of the communication two party to field is not interfered with yet, further, realizes the unrelated interface of order
Configuration.
Preferably, configuration template is stored in configuration database or is stored in configuration file, is read by interface engine
Configuration database is taken to define data, or profile data, so as to obtain configuration template, then in conjunction with from character string to be sent
The configuration parameter corresponding with order of middle acquisition is assembled into the interface parameters postponed, will be sent out with the interface parameters postponed to opposite end
Send.Preferably, the return of opposite end is received, when handling returning result, parsing acquisition equally is carried out to the returning result received
Variate-value corresponding to corresponding name variable, then with the character string of configuration template combination producing business processing, realize to right
The dynamic parameterization processing of the returning result at end, so as to reach the request of interface parameters and respond the mesh of equal dynamic state of parameters
's.Originally it is being preferable to carry out in placement, the parameter that all orders and order need is configurable, so as in actual execution
When, it is only necessary to according to the parameter of configuration, the character string parameterized accordingly is sent, so in later maintenance, for example, newly
Increase order, modification order, can be realized by configuring class, it is no longer necessary to developed for specific instructions, reduce maintenance
Complexity.
Preferably, the separator in character string to be sent obtains and the corresponding configuration parameter of order from character string
It can realize in the following way:Parsing business sends character string to be sent, according to point defined between communication interface
Parsed every symbol to sent character string, obtain field independent one by one, it is corresponding using the independent field as order
Configuration parameter;Interface ginseng corresponding with configuration parameter in the configuration template being locally stored according to the configuration parameter docking port of acquisition
Number, which carries out configuration, to be realized in the following way:The field independent one by one obtained with parsing replaces the industry in configuration template
Business variable element.
In a preferred embodiment of the invention, it can realize that transmitting terminal is joined according to the configuration of acquisition by following steps
Interface parameters corresponding with configuration parameter is configured in the configuration template that number docking port is locally stored, specific steps such as Fig. 5 institutes
Show, including:
S502:The position acquisition operation command code of operation command code of the transmitting terminal in character string to be sent;
S504:Transmitting terminal enters according to the configuration parameter of acquisition to interface parameters corresponding with operation command code in configuration template
Row configuration.
In above-mentioned preferred embodiment, using the position of operation command code find corresponding to need to configure in configuration template
Interface parameters position, the configuration parameter being then configured to interface parameters in character string, it is preferred that each order is corresponding
A set of separate configurations item, every suit separate configurations item are required for operation command code to enter with the configuration parameter parsed from character string
Row matching, so that corresponding with configuration parameter in the configuration template being locally stored according to the configuration parameter docking port of acquisition connect
Mouth parameter, which carries out configuration, accurately to be realized.
Preferably, can first judge the number of business variable element in configuration template, and with character string to be sent
The position of configuration parameter and content carry out correspondingly, obtaining operation command code, so as to which corresponding configuration parameter is write into configuration template
In the position of interface parameters corresponding to middle operation command code.
In a preferred embodiment of the invention, it will be sent in transmitting terminal with the interface parameters postponed after receiving terminal
Also transmitting terminal receive receiving terminal feedback process, specific steps as shown in fig. 6, including:
S602:Transmitting terminal receives the feedback parameter that receiving terminal is sent in response to interface parameters;
S604:Obtained in the configuration template that transmitting terminal is locally stored from interface corresponding with the name variable of feedback parameter instruction
Variate-value;
S606:Transmitting terminal is separated by separator to the variate-value of acquisition, and the variate-value after separation is formed and used
In the character string of business processing.
Preferably, form for the character string of business processing can first judge to need the number of parameter fed back and
The name variable of each parameter, variate-value corresponding to needing the parameter is taken out from feedback parameter according to the variable name of parameter,
And dynamic P-string is formed according to these contents, as the character string return for business processing.Preferably,
The order that operation flow performs can also be judged according to the character string of business processing, determines the flow action of next step.Business Stream
Journey execution module, performed successively according to the execution sequence of the good operation flow of above-mentioned configuration.
In above-mentioned preferred embodiment, after feedback parameter is received, similarly parameter is entered according to configuration template
Row configuration, it is preferred that by setting separator between different variate-values so as to be thought of as the character string for business processing, always
Principle and the building form of character string to be sent be approximate, so as to unify the rule of parameter configuration.
In a preferred embodiment of the invention, the interface parameters in configuration template includes:Business variable element and/or
Extend variable element.Specifically, in configuration module, except there is a constant character string, outside business variable element, also extension becomes
Parameter is measured, extending one of variable element, important be characterized in can be according to being actually needed infinite expanding.
In a preferred embodiment of the invention, string length of the business variable element in configuration template is fixed
, string length of the extension variable element in configuration template is variable.
Embodiment 3
The invention provides a kind of preferred embodiment further to be explained to the present invention, but noticeable
It is that the preferred embodiment is intended merely to the preferably description present invention, does not form and the present invention is improperly limited.
Fig. 7 is a kind of preferred structure block diagram of interface parameters transmitting device according to embodiments of the present invention, including:
Business configuration module 702, there is provided WEB interface instrument, configure what each business SIB modules needed by interface tool
Configuration parameter, when these configuration parameters are sent to communication interface, it is preferred that configuration parameter can be merged into dynamic character
String, when communication interface receives the dynamic character string, can split according to separator to the dynamic character string, and can be with
The flow for needing to perform in next step according to returning result configuration.
Operation flow execution module 704, the flow execution sequence in SIB chains perform successively, and according in SIB chains
Algorithm, it is sequentially completed the algorithm operating of each SIB in chain.
The parsing of communication interface parameter and assembling module 706, the parsing module of communication interface parameter are sent out to business
Dynamic character string parsed according to separator, so as to which dynamic character string is resolved into independent field one by one, then assemble
Module replaces the business variable element in configuration template with corresponding independent field content, and in actual applications, assembling module is also
Support the replacement function to extending variable element.
Communication interface parameters are replied module 708 and are used for when receiving the feedback message of opposite end, to needing to operation flow
The parameter that execution module is responded carries out character string of the generation for business processing.The outer communication module 710 of system.
Preferably, can changeable assembling character string in the following way:The original configuration template that reading is locally stored
Record, it is preferred that configuration template includes business variable element and extension variable element, wherein, the length of business variable element
It is fixed, it is assumed that placeholder is s%, and extension variable element constantly can be extended supplement according to being actually needed, common
Extension variable element has:Temporally variable parameter and sequence number variable element.
Temporally variable parameter:Preferably, following one or more combinations can be supported:
$YYYY:Current year, for example, actual send is 2011;
$MM:Current month, for example, actual send is 10;
$DD:Work as the day before yesterday, for example, actual send is 01;
$HH:Current hour, for example, actual send is 10;
$MI:Current minute, for example, actual send is 11;
$SS:Current number of seconds, for example, actual send is 59.
Sequence number variable element:Preferably, these configurations of $ SEQ1, $ SEQ2... $ SEQ10 are supported, wherein, X=1 to 10,
Namely the numeral represents the length for the character string that sequence-number field takes, for example, $ SEQ3 then represent that the sequence number takes byte
Length is 3 character string, between optional scope namely 000 to 999.
By the business variable element replaced in configuration item repeatedly, and variable element is extended, after the completion of, remaining is exactly to need
The constant character string to be sent, just complete the character string of changeable assembling.
Below in conjunction with interface parameters transmitting device illustrated in fig. 7 P-string life is sent to illustrate business
Order and communication interface analytic parameter character string command, and the whole flow process responded, as shown in figure 8, including:
S802:Business configuration module provides a WEB interface instrument, needs interface to send by instrument configuration service logical
During news operation, it would be desirable to which the parameter of configuration is assembled into character string to be sent, and the character string to be sent is sent into business
Flow executing modules.
S804:The parsing to communication interface parameter and assembling module transmission are to be sent as needed for operation flow execution module
Character string.
S806:The parsing module of communication interface parameter is independent field above-mentioned character string parsing, specifically according to decollator
, according to the decollator set in advance in advance, above-mentioned character string is parsed successively, purpose is exactly by with separated only of separator
Section of signing an agreement, a contract, a receipt, etc. is stored in character string dimension.
S808:The assembling module of communication interface parameter reads the record for the original configuration template being locally stored, it is preferred that
Configuration template includes business variable element and extension variable element.
S810:Determine whether to extend variable element, when in the absence of extension variable element, step S812 is performed, when depositing
When extending variable element, then perform step S814.
S812:The business variable element in configuration module is replaced with the independent field parsed.
S814:The extension variable element in configuration module is replaced with the independent field parsed.
S816:The command string of dynamic interface parameters is generated as needed.
S818:The feedback message of receiving terminal is received, communication interface parameters are replied module and entered according to different communications protocol
Row parsing, the structuring array of name variable and variate-value after generation storage parsing.
S820:Character string for business processing is generated according to name variable and variate-value, it is preferred that the word of business processing
The number that parameter is responded in symbol string is configurable, and each value for responding parameter is also configurable.Preferably, in reality
In, each is responded parameter and can configured according to the form of responseX=name variables, wherein, X represents this response
Which parameter is parameter be, name variable corresponds to the name variable that above-mentioned steps S818 is parsed, and communication interface parameter replys mould
Root tuber is taken out to the value of dependent variable according to name variable, and communication interface parameter replys module successively all reply variables of configuration
Value is taken out, and after being split with separator, forms the character string for business processing responded to business, and by the character string
Operation flow execution module is sent to, operation flow execution module, also according to separator, is taken out after the character string is received
As a result character string, so as to the interaction of finishing service configuration module and the execution flow of interface communication module.
As can be seen from the above description, the present invention realizes following technique effect:
Configuration parameter is obtained from character string according to separator, the parameter in configuration template entered further according to the configuration parameter
Row configuration, so as to solve in the prior art because can not docking port parameter carry out mobilism configuration and caused by one in communication process
The interface of denier one side of communication changes the problem of other side will be caused can not correctly to be parsed to the field received, realizes
The purpose of mobilism configuration is carried out to communication interface, so as to reach when there is an end interface to change, is not also interfered with logical
The purpose of parsing of the both sides to field is interrogated, further, realizes the unrelated interface configuration of order.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
- A kind of 1. interface parameters transmission method, it is characterised in that including:Separator of the transmitting terminal in character string to be sent obtains and the corresponding configuration parameter of order from the character string;In the configuration template that the transmitting terminal is locally stored according to the configuration parameter docking port of acquisition with the configuration parameter Corresponding interface parameters is configured;The transmitting terminal will be sent to receiving terminal with the interface parameters postponed.
- 2. according to the method for claim 1, it is characterised in that the transmitting terminal docks according to the configuration parameter of acquisition The step of interface parameters corresponding with the configuration parameter is configured in the configuration template that mouth is locally stored includes:The position acquisition operation command code of operation command code of the transmitting terminal in the character string to be sent;The transmitting terminal connects according to the configuration parameter of the acquisition to corresponding with the operation command code in the configuration template Mouth parameter is configured.
- 3. according to the method for claim 1, it is characterised in that the transmitting terminal will be sent to the interface parameters postponed and connect After receiving end, in addition to:The transmitting terminal receives the feedback parameter that the receiving terminal is sent in response to the interface parameters;The name variable with feedback parameter instruction is obtained in the configuration template that the transmitting terminal is locally stored from the interface Corresponding variate-value;The transmitting terminal is separated by separator to the variate-value of acquisition, and the variate-value after separation is formed and is used for The character string of business processing.
- 4. according to the method for claim 1, it is characterised in that the interface parameters in the configuration template includes:Business can Variable element and/or extension variable element.
- 5. according to the method for claim 4, it is characterised in that word of the business variable element in the configuration template Symbol string length is fixed, and string length of the extension variable element in the configuration template is variable.
- A kind of 6. interface parameters transmitting device, it is characterised in that positioned at transmitting terminal, including:First acquisition module, obtained for the separator in character string to be sent from the character string corresponding with order Configuration parameter;Configuration module, for joining in the configuration template that is locally stored according to the configuration parameter docking port of acquisition with the configuration Interface parameters is configured corresponding to number;Sending module, for receiving terminal will to be sent to the interface parameters postponed.
- 7. device according to claim 6, it is characterised in that the configuration module includes:Acquiring unit, the position acquisition operation command code for the operation command code in the character string to be sent;Dispensing unit, for the configuration parameter according to the acquisition to corresponding with the operation command code in the configuration template Interface parameters is configured.
- 8. device according to claim 6, it is characterised in that also include:Receiving module, the feedback parameter sent for receiving the receiving terminal in response to the interface parameters;Second acquisition module, for obtaining the change with feedback parameter instruction in the configuration template that is locally stored from the interface Measure variate-value corresponding to title;Comprising modules, formed for being separated by separator to the variate-value of acquisition, and by the variate-value after separation Character string for business processing.
- 9. device according to claim 6, it is characterised in that the interface parameters in the configuration template includes:Business can Variable element and/or extension variable element.
- 10. device according to claim 9, it is characterised in that the business variable element is in the configuration template String length is fixed, and string length of the extension variable element in the configuration template is variable.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210019142.3A CN102546259B (en) | 2012-01-20 | 2012-01-20 | Interface parameters transmission method and device |
PCT/CN2012/076328 WO2013107143A1 (en) | 2012-01-20 | 2012-05-31 | Method and device for transmitting interface parameter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210019142.3A CN102546259B (en) | 2012-01-20 | 2012-01-20 | Interface parameters transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102546259A CN102546259A (en) | 2012-07-04 |
CN102546259B true CN102546259B (en) | 2018-03-09 |
Family
ID=46352264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210019142.3A Active CN102546259B (en) | 2012-01-20 | 2012-01-20 | Interface parameters transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102546259B (en) |
WO (1) | WO2013107143A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423041B (en) * | 2016-03-31 | 2021-05-07 | 阿里巴巴集团控股有限公司 | Method and apparatus for implementing application programming interface configuration and invocation |
CN108733425B (en) * | 2017-04-20 | 2021-07-20 | 北京京东尚科信息技术有限公司 | Service change information sending method and device, electronic equipment and storage medium |
CN107229474B (en) * | 2017-05-31 | 2020-12-25 | 成都药王科技股份有限公司 | Method and device for rapidly configuring Java interface and chart service based on visual interface |
CN107911249B (en) * | 2017-11-28 | 2021-05-28 | 新华三技术有限公司 | Method, device and equipment for sending command line of network equipment |
CN108334465B (en) * | 2018-02-06 | 2020-05-22 | 深圳壹账通智能科技有限公司 | Configuration method, device and equipment of communication interface and computer readable storage medium |
CN109600381B (en) * | 2018-12-18 | 2021-11-12 | 浩云科技股份有限公司 | Interface adaptation method, device and system |
CN113467798A (en) * | 2020-03-31 | 2021-10-01 | 华为技术有限公司 | Signal processing method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564128A (en) * | 2004-03-26 | 2005-01-12 | 中兴通讯股份有限公司 | String manipulation command method |
US7444320B1 (en) * | 2002-04-22 | 2008-10-28 | Cisco Technology, Inc. | System and method for configuring multiple ISCSI devices |
CN101515929A (en) * | 2009-03-24 | 2009-08-26 | 成都市华为赛门铁克科技有限公司 | Message format conversion method, network device and agent device |
CN101546264A (en) * | 2009-04-27 | 2009-09-30 | 成都市华为赛门铁克科技有限公司 | command line processing method, device and communication system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050060693A1 (en) * | 2003-08-27 | 2005-03-17 | Terry Robison | Command string parsing |
-
2012
- 2012-01-20 CN CN201210019142.3A patent/CN102546259B/en active Active
- 2012-05-31 WO PCT/CN2012/076328 patent/WO2013107143A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7444320B1 (en) * | 2002-04-22 | 2008-10-28 | Cisco Technology, Inc. | System and method for configuring multiple ISCSI devices |
CN1564128A (en) * | 2004-03-26 | 2005-01-12 | 中兴通讯股份有限公司 | String manipulation command method |
CN101515929A (en) * | 2009-03-24 | 2009-08-26 | 成都市华为赛门铁克科技有限公司 | Message format conversion method, network device and agent device |
CN101546264A (en) * | 2009-04-27 | 2009-09-30 | 成都市华为赛门铁克科技有限公司 | command line processing method, device and communication system |
Also Published As
Publication number | Publication date |
---|---|
CN102546259A (en) | 2012-07-04 |
WO2013107143A1 (en) | 2013-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102546259B (en) | Interface parameters transmission method and device | |
CN109768970B (en) | Configurable universal protocol generation method | |
CN102546442B (en) | Communication protocol conversion technology | |
US10666718B2 (en) | Dynamic data transport between enterprise and business computing systems | |
EP1275055A4 (en) | Open market collaboration system for enterprise wide electronic commerce | |
CN109948938A (en) | The bill of materials configuration method and device and equipment of a kind of enterprise resource planning | |
CN114785685A (en) | Software differential upgrading method and device, electronic equipment and readable storage medium | |
CN104660547B (en) | A kind of service platform for realizing telecommunication | |
CN107798098A (en) | A kind of method and device for realizing dynamic socket field | |
CN102520988B (en) | Processing method and system of intelligent card individualization data | |
CN112732458A (en) | Multi-protocol data integration system and method adopting protocol stack | |
CN113709177B (en) | Method for processing message and external call gateway | |
CN107809335B (en) | Configuration method and device of network system | |
CN113347195B (en) | Dynamic mounting system and method for communication protocol packet of Internet of things equipment | |
CN103139158B (en) | The transmission method and device of service order | |
CN110580172B (en) | Configuration rule verification method and device, storage medium and electronic device | |
US20200311040A1 (en) | Dynamically rendering an application programming interface for internet of things applications | |
CN110049017B (en) | Message intercommunication device and method between heterogeneous platforms | |
CN113055494A (en) | Communication method and communication device | |
JP2001014400A (en) | Integrated operation system | |
CN103795727A (en) | Data distribution method based on arborescence structure | |
KR20210066595A (en) | Edge Device for Interworking with Heterogeneous Legacy Protocols in Smart Factory | |
CN110989537A (en) | Production data processing method, apparatus, medium, and system | |
CN103491159A (en) | Work order analysis asynchronous calling service method and system | |
KR101547346B1 (en) | Synchronous/asynchronous communication for business integration, interoperation of dynamic professional management system |
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 |