CN105718431B - Method for formatting Webservice message - Google Patents
Method for formatting Webservice message Download PDFInfo
- Publication number
- CN105718431B CN105718431B CN201610022969.8A CN201610022969A CN105718431B CN 105718431 B CN105718431 B CN 105718431B CN 201610022969 A CN201610022969 A CN 201610022969A CN 105718431 B CN105718431 B CN 105718431B
- Authority
- CN
- China
- Prior art keywords
- text
- message
- formatting
- webservice
- box
- 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
- 238000000034 method Methods 0.000 title claims abstract description 26
- 241000282414 Homo sapiens Species 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000029305 taxis Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Abstract
The invention discloses a method for formatting a Webservice message, which comprises the following steps: copying a Webservice return message into a specified text box; obtaining the text content of the message copied in the text box through a webpage scripting language; and formatting by using an extensible markup language, and outputting a formatting result to a specified text box. Compared with the prior art, the method for formatting the Webservice message enables software developers to realize rapid formatting of the message by means of the method, better services the reading habits of human beings, and improves the speed and efficiency of message analysis.
Description
Technical field
The present invention relates to field of computer technology, specifically a kind of highly practical, formatting Webservice messages
Method.
Background technology
When software developer carries out Webservice message formats at present, need manually to be looked into a large amount of message
See with resolution pattern, this work belongs to repeated labor, manpower workload is big, and be easy error, data error rate compared with
Height brings various inconvenience to the follow-up work of software developer, by the way of automatically formatting message, can solution soften
Part developer is transferred to software developer in the work such as prior exploitation from repeated labor work.
Based on this, a kind of method formatting Webservice messages is now provided.
Invention content
The technical assignment of the present invention is to be directed to the above shortcoming, provides a kind of highly practical, formatting Webservice
The method of message.
A method of Webservice messages being formatted, realization process is:
Step 1: Webservice returned packets are copied in specified text box;
Step 2: obtaining the message content of text replicated in text box by page script language;
Step 3: be formatted using extensible markup language, and in output format result to specified text box.
The specified text box is the text edit box that provides of Formatting Facility, i.e., Webservice returned packets first by
It copies in text edit box, after completing formatting step, page script language is recycled to be backfilling into text edit box,
Message in text edit box after display format.
The detailed process of the step 2 is:It is obtained in text edit box by the element selector in page script language
Message content of text, then page script language interception message text part.
It is using the detailed process that extensible markup language is formatted in the step 3:After obtaining body part,
It calls extensible markup language to be formatted the extending marking label in the message text of acquisition, i.e., xml labels is carried out
It formats.
A kind of method of formatting Webservice messages of the present invention, has the following advantages:
The method of a kind of formatting Webservice messages of the invention so that software developer realizes by this method
The quick formatting of message more services mankind's reading habit, improves the speed and efficiency of packet parsing, the message of this method
Automatically formatting speed is fast, and data are shown accurately, are had wide range of applications, highly practical, applied widely, easy to spread.
Description of the drawings
Attached drawing 1 is the implementation flow chart of the present invention.
Attached drawing 2 is the message content schematic diagram before formatting.
Attached drawing 3 is formatted message content schematic diagram.
Specific implementation mode
The invention will be further described in the following with reference to the drawings and specific embodiments.
A kind of method formatting Webservice messages of offer of the present invention is realized as shown in attached drawing 1, Fig. 2, Fig. 3
Step is:
Step 1: Webservice returned packets are copied in specified text box;
Step 2: obtaining the message content of text replicated in text box by page script language;
Step 3: be formatted using extensible markup language, and in output format result to specified text box.
The specified text box is the text edit box that provides of Formatting Facility, i.e., Webservice returned packets first by
It copies in text edit box, after completing formatting step, page script language is recycled to be backfilling into text edit box,
Message in text edit box after display format.
The detailed process of the step 2 is:It is obtained in text edit box by the element selector in page script language
Message content of text, then page script language interception message text part.
It is using the detailed process that extensible markup language is formatted in the step 3:After obtaining body part,
It calls extensible markup language to be formatted the extending marking label in the message text of acquisition, i.e., xml labels is carried out
It formats.
The method of the present invention can be applied to the formatting etc. of three phase of Golden Taxes interface packets.
Such as Webservice messages before and after attached drawing 2, formatting shown in Fig. 3, wherein the content formatted is only to format
Message xml, entire formatting procedure are automatically performed.
Since one of current software developer's groundwork amount is exactly the formatting work of Webservice messages, format
Change needs to carry out line by line, and heavy workload efficiency is low, phenomena such as being susceptible to human error.In order to improve case above, devise
Webservice message automatically formatting methods, and be applied in the development of three phase of various regions tax tax, it is using the present invention
Method realizes the automatically formatting of exploitation message, improves the working efficiency of developer.
Above-mentioned specific implementation mode is only the specific case of the present invention, and scope of patent protection of the invention includes but not limited to
Above-mentioned specific implementation mode, a kind of claims of the method for any formatting Webservice messages for meeting the present invention
And the appropriate change or replacement that any person of an ordinary skill in the technical field does it, it should all fall into the patent of the present invention
Protection domain.
Claims (1)
1. a kind of method formatting Webservice messages, which is characterized in that its realization process is:
Step 1: Webservice returned packets are copied in specified text box, the specified text box is Formatting Facility
The text edit box of offer, i.e. Webservice returned packets are copied to first in text edit box, complete to format step
After rapid, page script language is recycled to be backfilling into text edit box, the message in text edit box after display format;
Step 2: obtaining the message content of text replicated in text box by page script language:By in page script language
Element selector obtain the message content of text in text edit box, then page script language interception message text portion
Point;
Step 3: be formatted using extensible markup language, and in output format result to specified text box:It obtains just
Behind literary part, extensible markup language is called to be formatted the extending marking label in the message text of acquisition, i.e., to xml
Label is formatted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610022969.8A CN105718431B (en) | 2016-01-14 | 2016-01-14 | Method for formatting Webservice message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610022969.8A CN105718431B (en) | 2016-01-14 | 2016-01-14 | Method for formatting Webservice message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105718431A CN105718431A (en) | 2016-06-29 |
CN105718431B true CN105718431B (en) | 2018-10-23 |
Family
ID=56147823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610022969.8A Active CN105718431B (en) | 2016-01-14 | 2016-01-14 | Method for formatting Webservice message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105718431B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201542B (en) * | 2016-07-14 | 2020-06-26 | 张博 | WOF rapid development platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1226031A (en) * | 1997-09-11 | 1999-08-18 | 国际商业机器公司 | HTTP caching proxy to filter and control display of data in web browser |
CN103778732A (en) * | 2012-10-19 | 2014-05-07 | 方欣科技有限公司 | Electronic-invoice issuing method and device |
CN104038663A (en) * | 2013-03-06 | 2014-09-10 | 株式会社理光 | Device management in a distributed scan system |
CN104036163A (en) * | 2013-03-06 | 2014-09-10 | 株式会社理光 | Right Management In Distributed Scan System |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050228A1 (en) * | 2003-08-29 | 2005-03-03 | Michael Perham | Method and apparatus for the use of dynamic XML message formats with web services |
-
2016
- 2016-01-14 CN CN201610022969.8A patent/CN105718431B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1226031A (en) * | 1997-09-11 | 1999-08-18 | 国际商业机器公司 | HTTP caching proxy to filter and control display of data in web browser |
CN103778732A (en) * | 2012-10-19 | 2014-05-07 | 方欣科技有限公司 | Electronic-invoice issuing method and device |
CN104038663A (en) * | 2013-03-06 | 2014-09-10 | 株式会社理光 | Device management in a distributed scan system |
CN104036163A (en) * | 2013-03-06 | 2014-09-10 | 株式会社理光 | Right Management In Distributed Scan System |
Non-Patent Citations (2)
Title |
---|
基于模板的作战仿真数据自动生成军事报文方法研究;孙剑 等;《Secientific Research》;20121231;第14卷;第425-429页 * |
雷达情报的XML标准化描述及格式转换;冯新 等;《火力与指挥控制》;20100930;第35卷(第9期);第147-151,155页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105718431A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107844299A (en) | A kind of implementation method of Web application development tools | |
CN104484216A (en) | Method and device for generating service interface document and on-line test tool | |
CN105068815A (en) | Page editor interaction apparatus and method | |
CN104731589A (en) | Automatic generation method and device of user interface (UI) | |
CN112286513A (en) | Visual design method and device based on component metadata | |
CN104615462B (en) | Cross-platform Mobile solution generation service end and system | |
CN104793961A (en) | Quick JavaWeb development method and system using native Web codes | |
CN108228180A (en) | Real time workshop method and system based on visual interface design | |
CN104461538A (en) | Report generation method and report generation system | |
CN103761087A (en) | Method and device for cross-platform development of mobile applications | |
CN105528418A (en) | Design document generation method and apparatus | |
CN104268226A (en) | Control and method for copying and uploading Word picture based on browser | |
CN110941428B (en) | Website creation method and device | |
CN105069116A (en) | Method and system for converting json string into array | |
CN107256160A (en) | A kind of code document generation method in continuous integrating, apparatus and system | |
CN106126564A (en) | A kind of method rendered based on dynamic template language | |
CN104834715A (en) | Website generating method and system based on components and container | |
CN105718431B (en) | Method for formatting Webservice message | |
CN103605514A (en) | Front-end template processing method and device | |
CN102521008A (en) | Program compiling device and method for compiling program | |
CN103294463A (en) | Editing system and method | |
CN104503767A (en) | System and method for automatically generating codes based on LIN protocol | |
CN106446064A (en) | Data conversion method and device | |
CN106383734A (en) | Method for extracting detailed design from codes | |
CN108549693B (en) | CMS page generation method based on crawler technology |
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: 20200603 Address after: 250100 Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan City, Shandong Province Patentee after: Inspur Software Technology Co.,Ltd. Address before: 250100 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877 Patentee before: INSPUR GROUP Co.,Ltd. |
|
TR01 | Transfer of patent right |