CN104166551A - Application interface developing method and developing device - Google Patents
Application interface developing method and developing device Download PDFInfo
- Publication number
- CN104166551A CN104166551A CN201410400564.4A CN201410400564A CN104166551A CN 104166551 A CN104166551 A CN 104166551A CN 201410400564 A CN201410400564 A CN 201410400564A CN 104166551 A CN104166551 A CN 104166551A
- Authority
- CN
- China
- Prior art keywords
- xml
- development device
- data file
- web
- label
- 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.)
- Granted
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses an application interface developing method and a developing device which are used for lowering the complexity when a Web application is transcoded into a Web-Service interface, and saving refitting cost. The method includes the steps that during the process of browser access to the Web application, the developing device records data messages and converts the data messages into XML tags, wherein each XML tag corresponds to a pixel; the developing device determines the logic execution sequence of the XML tags according to the line-connection relation of the different pixels, compiles the XML tags into XML data files according to the logic execution sequence, and deploys the XML data files to a server so that the server can upload the XML data files and provide the Web-Service interfaces corresponding to the XML data files.
Description
Technical field
The present invention relates to communication field, relate in particular to a kind of application interface development approach and development device.
Background technology
For medium-sized and small enterprises, often there is a kind of personal computer (personal computer based on webpage Web, PC) office system, yet, along with the arrival in mobile Internet epoch, such Web application is transformed into the application that mobile terminal can access has become a requisite job.
At present, can to the source code of this system, carry out recompile by senior developer, this Web system applies is transcoded into web service Web-Service interface, make client to develop mobile office application based on this interface.
But, use such reforming mode, based on its source code exploitation, need senior developer to participate in, edit a large amount of codes, transformation process is complicated and construction costs is very high.
Summary of the invention
The embodiment of the present invention provides a kind of application interface development approach and development device, for reducing Web application being transcoded into the complexity of Web-Service interface procedure, saves improvement cost.
Embodiment of the present invention first aspect provides a kind of application interface development approach, comprising:
Development device is recorded the data message in browser access webpage Web application process;
Described development device is converted to expandable mark language XML label by described data message, the corresponding pel of each XML label;
Described development device is determined the logic execution sequence of described XML label according to the line relation of different pels;
Described development device becomes XML data file according to the logic execution sequence of described XML label by described XML label editing;
Described development device is disposed described XML data file to server, makes described server load described XML data file, web service Web-Service interface corresponding to described XML data file provides.
In conjunction with the first aspect of the embodiment of the present invention, in the first implementation of embodiment of the present invention first aspect, the step that described development device is recorded the data message in browser access webpage Web application process also comprises before:
The connected mode that described development device is revised described browser is agent way, and wherein, the proxy server in described agent way points to the address that described development device provides.
In conjunction with the first aspect of the embodiment of the present invention and the first implementation of first aspect, in the second implementation of embodiment of the present invention first aspect, described development device becomes the step of XML data file also to comprise before described XML label editing according to the logic execution sequence of described XML label:
When the line relationship change of described different pels, described development device, according to the line relation after changing, refreshes the logic execution sequence of described XML label.
In conjunction with the second implementation of embodiment of the present invention first aspect, in the third implementation of embodiment of the present invention first aspect,
Described development device becomes the step of XML data file also to comprise before described XML label editing according to the logic execution sequence of described XML label:
Described development device is set up the corresponding relation of described XML label and described Web-Service interface;
Web service Web-Service interface corresponding to described XML data file is specially:
Web-Service interface corresponding to XML label in described XML data file.
The third implementation in conjunction with embodiment of the present invention first aspect, in the 4th kind of implementation of embodiment of the present invention first aspect, described development device becomes the step of XML data file also to comprise before described XML label editing according to the logic execution sequence of described XML label:
Described development device is revised function corresponding to described XML label by revising the attribute of described pel.
In conjunction with the 4th kind of implementation of embodiment of the present invention first aspect, in the 5th kind of implementation of embodiment of the present invention first aspect, described development device is disposed described XML data file and was also comprised before the step of server:
Described development device is issued described XML data file to testing server, and described XML data file is carried out to interface testing, and receives the test result of described testing server feedback.
Embodiment of the present invention second aspect provides a kind of development device, comprising:
Record module, for recording the data message of browser access Web application process;
Modular converter, for recording the data message that module records and be converted to XML label, the corresponding pel of each XML label described;
Logic layout module, determines the logic execution sequence of the XML label that described modular converter converts to for the line relation according to different pels;
Editor module, for becoming XML data file according to the logic execution sequence of the definite XML label of described Logic layout module by described XML label editing;
Deployment module, for disposing described XML data file to server, makes described server load described XML data file, web service Web-Service interface corresponding to described XML data file provides.
In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of embodiment of the present invention second aspect, described development device also comprises:
Agents modify module, is agent way for revising the connected mode of described browser, and wherein, the proxy server in described agent way points to the address that described development device provides.
In conjunction with the second aspect of the embodiment of the present invention and the first implementation of second aspect, in the second implementation of embodiment of the present invention second aspect, described development device also comprises:
Logic refresh module, during for line relationship change when described different pels, according to the line relation after changing, refreshes the logic execution sequence of described XML label.
In conjunction with the second implementation of embodiment of the present invention second aspect, in the third implementation of embodiment of the present invention second aspect, described development device also comprises:
Set up module, for setting up the corresponding relation of described XML label and described Web-Service interface;
Web service Web-Service interface corresponding to described XML data file is specially:
Web-Service interface corresponding to XML label in described XML data file.
In conjunction with the third implementation of embodiment of the present invention second aspect, in the 4th kind of implementation of embodiment of the present invention second aspect, described development device also comprises:
Modified module, for revising function corresponding to described XML label by revising the attribute of described pel.
In conjunction with the 4th kind of implementation of embodiment of the present invention second aspect, in the 5th kind of implementation of embodiment of the present invention second aspect, described development device also comprises:
Test module, for issuing XML data file that described editor module edits out to testing server, carries out interface testing to described XML data file, and receives the test result of described testing server feedback.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: in the embodiment of the present invention, development device is recorded the data message in browser access Web application process, this data message is converted to XML label, the corresponding pel of each XML label, development device is determined the logic execution sequence of this XML label according to the line relation of different pels, according to this logic execution sequence, this XML label editing is become to XML data file, dispose this XML data file to server, can make server load XML data file, Web-Service interface corresponding to this XML data file provide, like this, user only needs different pels to carry out line drafting, adjust the line relation of different pels, can edit XML data file, thereby be Web-Service interface by a Web application transcoding, in transcoding process, no longer need a large amount of codes to edit, only need the line relation of pel to adjust, realized the patterned development scheme of What You See Is What You Get, greatly simplify the complexity of transcoding process, significantly saved the cost that Web application is transformed into mobile application.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of application interface development approach in the embodiment of the present invention;
Fig. 2 is schematic flow sheet of application interface development approach in the embodiment of the present invention;
Fig. 3 is the unified framework schematic diagram of image display system in the embodiment of the present invention;
Fig. 4 is structural representation of development device in the embodiment of the present invention;
Fig. 5 is another structural representation of development device in the embodiment of the present invention;
Fig. 6 is another structural representation of development device in the embodiment of the present invention;
Fig. 7 is another structural representation of development device in the embodiment of the present invention;
Fig. 8 is another structural representation of development device in the embodiment of the present invention;
Fig. 9 is another structural representation of development device in the embodiment of the present invention;
Figure 10 is another structural representation of development device in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, embodiment of application interface development approach comprises:
101, development device is recorded the data message in browser access Web application process;
When user uses browser access Web application, browser can produce the mutual of data message with Web application, development device is recorded the data message in this browser access Web application process, comprises the data message that sends request of access and the data message etc. that returns to request results.
Development device can adopt various ways to record this data message, optionally, the connected mode that development device can be revised this browser is agent way, set the address that the proxy server in this agent way provides for this development device, can be generally the address of development device self or the address of development device appointment, like this, browser and Web apply mutual data message just all can pass through this proxy server, can very easily mutual data message be recorded and be preserved, development device can also adopt other mode to record this data message, such as making browser, the data message of transmission and the data message that receives are all made a copy for to this development device etc., do not limit herein.
102, this development device is converted to XML label by described data message, the corresponding pel of each XML label;
Development device has been recorded after the data message in browser access Web application process, and this data message is converted to expandable mark language XML label, the corresponding pel of each XML label.
Be understandable that, the half structural feature due to XML label, so can very easily each XML label be converted to corresponding pel, for example can carry out the conversion between XML label and figure with Draw2D image display system, certainly, crossover tool or the conversion regime that can also adopt other are not construed as limiting herein.
It should be noted that, data message is converted to the process of XML label, can contrast the transformation rule pre-establishing changes, in transformation rule, can include the rule of correspondence how various data message converts the XML label of needs to, these transformation rules that pre-establish can be included in exploitation document, also can be according to the actual needs, the transformation rule being made new advances by developer's exploitation is not construed as limiting herein.
103, this development device is determined the logic execution sequence of described XML label according to the line relation of different pels;
Development device is converted to XML label by data message, and after making the corresponding pel of each XML label, user or developer can according to practical application need to carry out selectable line drafting to each pel, this development device is determined the logic execution sequence of XML label according to the line relation of the different pels of drawing out.
104, this development device becomes XML data file according to the logic execution sequence of described XML label by described XML label editing;
Development device is determined after the logic execution sequence of XML label, according to the logic execution sequence of this XML label, XML label editing is become to XML data file.
105, this development device is disposed described XML data file to server, makes this server load described XML data file, Web-Service interface corresponding to described XML data file provides.
Development device obtains after XML data file, this XML data file is deployed to server, make this server load this XML data file, Web-Service interface corresponding to described XML data file provide, be with this Web and apply corresponding Web-Service interface, so, this server can outwards provide the Web-Service interface service of this Web application, because Web-Service interface has standard SOAP, the output of JSON form, can be applicable in mobile application, developer just can utilize this Web-Service interface exploitation to go out the mobile application of this Web application easily like this.
Wherein, the corresponding relation of XML data file and Web-Service interface can be searched according to existing protocol, also can use the mapping ruler having customized in advance, is not construed as limiting herein.
In the embodiment of the present invention, development device is recorded the data message in browser access Web application process, this data message is converted to XML label, the corresponding pel of each XML label, development device is determined the logic execution sequence of this XML label according to the line relation of different pels, according to this logic execution sequence, this XML label editing is become to XML data file, dispose this XML data file to server, can make server load XML data file, Web-Service interface corresponding to this XML data file provide, like this, user only needs different pels to carry out line drafting, adjust the line relation of different pels, can edit XML data file, thereby be Web-Service interface by a Web application transcoding, in transcoding process, no longer need a large amount of codes to edit, only need the line relation of pel to adjust, realized the patterned development scheme of What You See Is What You Get, greatly simplify the complexity of transcoding process, significantly saved the cost that Web application is transformed into mobile application.
Above in embodiment, development device is determined the logic execution sequence of XML label according to the line relation of different pels, in actual applications, user can modify to the line relation of each pel, further, user can also modify to the attribute of each pel, when there are these situations, this development device need to operate accordingly, below the application interface development approach in the embodiment of the present invention is specifically described, refer to Fig. 2, in the embodiment of the present invention, another embodiment of application interface development approach comprises:
201, development device is recorded the data message in browser access Web application process;
When user uses browser access Web application, browser can produce the mutual of data message with Web application, development device is recorded the data message in this browser access Web application process, comprises the data message that sends request of access and the data message etc. that returns to request results.
Development device can adopt various ways to record this data message, optionally, the connected mode that development device can be revised this browser is agent way, set the address that the proxy server in this agent way provides for this development device, can be generally the address of development device self or the address of development device appointment, like this, browser and Web apply mutual data message just all can pass through this proxy server, can very easily mutual data message be recorded and be preserved, development device can also adopt other mode to record this data message, such as making browser, the data message of transmission and the data message that receives are all made a copy for to this development device etc., do not limit herein.
202, this development device is converted to XML label by described data message, the corresponding pel of each XML label;
Development device has been recorded after the data message in browser access Web application process, and this data message is converted to expandable mark language XML label, the corresponding pel of each XML label.
Be understandable that, the half structural feature due to XML label, so can very easily each XML label be converted to corresponding pel, for example can carry out the conversion between XML label and figure with Draw2D image display system, certainly, crossover tool or the conversion regime that can also adopt other are not construed as limiting herein.
It should be noted that, data message is converted to the process of XML label, can contrast the transformation rule pre-establishing changes, in transformation rule, can include the rule of correspondence how various data message converts the XML label of needs to, these transformation rules that pre-establish can be included in exploitation document, also can be according to the actual needs, the transformation rule being made new advances by developer's exploitation, be not construed as limiting herein, wherein, its transformation rule can be simple indignant draw together into, dissimilar according to network request, request type is converted to tag head, required parameter is converted to label body.
203, this development device is determined the logic execution sequence of described XML label according to the line relation of different pels;
Development device is converted to XML label by data message, and after making the corresponding pel of each XML label, user or developer can according to practical application need to carry out selectable line drafting to each pel, this development device is determined the logic execution sequence of XML label according to the line relation of the different pels of drawing out.
204,, when the line relationship change of described different pels, this development device, according to the line relation after changing, refreshes the logic execution sequence of described XML label;
When user or developer are carried out line drafting to each pel, because drawing process is dynamic, when to carrying out the line relation of the pel of line while modifying, or while connecting into new pel, line relation between each pel all can change,, when the line relationship change of different pels, this development device, according to the line relation after changing, refreshes the logic execution sequence of this XML label.
Optionally, the logic execution sequence of each XML label can be stored in a document, when the line relation of different pels sends variation, because pel is corresponding one by one with XML label, can change accordingly the logic execution sequence of the XML label recording in the document, the physical relationship that wherein connects wired-AND logic circuits execution sequence can be precedence relationship, in line, from XML label corresponding to pel close to initial end points, preferentially carry out, XML label corresponding to pel away from initial end points delayed execution, and the initial end points of line can be specified by user.
205, development device is set up the corresponding relation of described XML label and Web-Service interface;
Development device is determined after the logic execution sequence of XML label, can set up the corresponding relation of XML label and Web-Service interface.
Be understandable that, if can use in existing protocol or the corresponding relation having woven, also can not perform step 205, if in existing protocol or the corresponding relation weaving inapplicable, can set up according to specific needs its corresponding relation by developer, be not construed as limiting herein.
Be understandable that, XML label is corresponding with Web-Service interface, the Web-Service interface method that the bottom ability that is actually and encapsulates provides is corresponding, and this corresponding Web-Service interface method of equipment calls, can provide this Web-Service interface service.And by bottom ability encapsulation, the implementation of the Web-Service interface method providing has much at present, for example can formulation ability shine upon TLD file, by reflecting the mode etc. of calling flexibly bottom ability, be not construed as limiting herein.
206, described development device is revised function corresponding to described XML label by revising the attribute of described pel;
Due to the structurized characteristic of XML label moiety, XML label is corresponded to after pel, can in the attribute of this pel, demonstrate the function of this XML label, corresponding, development device is by revising the attribute of this pel, also the function that this XML label is corresponding can be revised, for example, the corresponding relation of this XML label and Web-Service interface can be revised, can also revise other functions, for example carry out time delay, network parameter etc. are not construed as limiting herein.
Be understandable that, if do not need, the function of XML label is not modified, step 205 can not need yet, and is not construed as limiting herein.
207, this development device becomes XML data file according to the logic execution sequence of described XML label by described XML label editing;
Development device is determined after the logic execution sequence of XML label, according to the logic execution sequence of this XML label, XML label editing is become to XML data file.
Optionally, in step 202, data message is converted to after XML label, can be by the XML tag storage transforming out in a file, and step 203 or 204 can generate the document that stores definite XML tag logic execution sequence while determining the logic execution sequence of XML labels, in step 207, development device can be according to the logic execution sequence of each XML label in the document, read successively each XML label of storage, editor becomes XML data file.
208, development device is issued described XML data file to testing server, and described XML data file is carried out to interface testing, and receives the test result of described testing server feedback;
In actual applications, development device obtains after XML data file, this XML data file (for example can be published to testing server, the server Tomcat server of increasing income), this XML data file is carried out to interface testing, receive the test result of this testing server feedback, can to the XML label in this XML data file, adjust according to this test result.
Be understandable that, if can determine, the XML data file generating is no problem, also can not perform step 208 and test, and directly perform step 209.
209, this development device is disposed described XML data file to server, makes this server load described XML data file, and Web-Service interface corresponding to XML label in described XML data file is provided.
Development device obtains after XML data file, this XML data file is deployed to server, make this server load this XML data file, Web-Service interface corresponding to XML label in described XML data file is provided, so, this server can outwards provide the Web-Service interface service of this Web application, utilizes like this this Web-Service interface service just can convert this Web application to mobile application easily.
Optionally, XML label specifically can with JAVA network request in interface API mutually shine upon, the corresponding relation of this mapping can be set up in step 205, also can from existing protocol, call, and is not construed as limiting herein.
Be understandable that, server loads after XML data file, load in order XML label wherein, the Web-Service interface method that call XML label is corresponding, carry out this interface method the Web-Service interface service that this XML label is corresponding can be provided, thereby Web-Service interface corresponding to this XML data file provide, further, a plurality of XML labels can be corresponding with a Web-Service interface, and XML data file can a corresponding Web-Service interface, can corresponding a plurality of Web-Service interfaces, according to the number of the corresponding Web-Service interface method of XML label wherein, determine, be not construed as limiting herein.
In the embodiment of the present invention, when line relationship change between different pels, development device can be according to the line relation after changing, refresh the logic execution sequence of XML label, make like this this patterned programming mode real-time more by force and more flexible,, can to the function of XML label, modify by revising the attribute of pel meanwhile, strengthen the visualization in programming process.Further, after obtaining XML data file, can be published in testing server and test, obtain test result, can to the XML data file obtaining, modify according to test result like this, make the XML data file that obtains more accurately and reliably.
Above in embodiment, the corresponding pel of each XML label, and can according to the line relation of different pels, determine the logic execution sequence of XML label, in actual applications, its implementation has a variety of, below to realize describing with Draw2D image display system:
Be illustrated in figure 3 the framework map of Draw2D image display system, wherein, core component LightweightSystem is connected to graphic example on SWT (Standard Widget Toolkit) assembly, wherein, SWT is a graphic user interface GUI framework of increasing income, pel is arranged according to tree structure in the drawing panel Canvas of SWT assembly, and Canvas comes to contact with LightweightSystem by triggering SWTEvent (SWT event); LightweightSystem is the Core Feature parts of Draw2D, realize the drafting of figure, the function that event forwarding and figure upgrade, be divided into three chief components, be respectively: root graphic element Rootfigure, event generator Event dispatcher and renewal manager Update manage; Rootfigure is the root of all figures, that is to say that other figures are to be all directly or indirectly placed in Rootfigure, Event dispatcher tasks Rootfigure the variety of event on drawing panel Canvas by triggering Draw2d Devent (Draw2d event) minute, these events finally can be divided and tasked each pel, and Update manage is used for redrawing figure; In this LightweightSystem, can also comprise obtaining and module GraphicsSource is set for obtaining or arrange the graphical-set of Canvas graph layer.
In classification editor TagEditor assembly, store XML label, by classification view unit TagView, XML label is corresponded to each pel and be stored in Rootfigure, then be presented on drawing panel Canvas;
When the pel in drawing panel Canvas redraws, Draw2dEvent notice TagEditor assembly in LightweightSystem refreshes XML file again, and TagEditor assembly reorganizes sequence by the XML label in TagView according to the node relationships of pel.
Above in embodiment, development device is disposed XML data file to server, make this server load Web-Service interface corresponding to XML label in XML data file, in actual applications, this server can be a transcoding server, and this Web-Service interface can be specially a SOAP interface, transcoding server can call the XML label of customization in advance and the mapping ruler of SOAP interface while loading XML label, and this mapping ruler can save as a TLD file;
When transcoding server has loaded XML label and generated after SOAP interface according to mapping ruler, this transcoding server can carry out follow-up work according to following flow process:
1, transcoding server receives the SOAP request that client sends;
2, this transcoding server agency initiates HTTP and asks enterprise application server, and enterprise application server sends the html page of corresponding object to this transcoding server;
3, this transcoding server extracts data from html page;
4, this transcoding server is SOAP message by the data assembling of extraction, returns to client.
For ease of understanding, with a concrete application scenarios, the application interface development approach in the embodiment of the present invention is specifically described below:
When needs are Web-Service interface by a teleconference reservation system transcoding, when its exploitation is become to teleconference APP, development device is recorded in and in browser, logs in conference system, the data message in predetermined conference process in the reciprocal process of this browser and teleconference reservation system;
The data message that development device playback records, is converted to XML label by data message according to prefabricated rule, take part transformation rule below as example:
Http Post message is converted into
Http Get message is converted into
Https Get message is converted into
Https Post message is converted into
Https request address url is converted into
In Https request, SSL certificate is partly converted into
Body argument section in Https request is converted into
Convert to after XML label, user adds the XML label of needs in pel editor panel to, according to following logical relation, adds successively pel, and each pel is carried out to line:
Pel 1, transcoding server receive client-requested;
Pel 2, transcoding server send conference system and log in request;
Pel 3, transcoding server send conference system predetermined request;
Pel 4, transcoding server extract the predetermined achievement failure response of meeting brother code;
Pel 5, transcoding server return to client end response result.
Development device adds after pel at drawing panel successively, according to the line relation of each pel, determine the logic execution sequence of each pel, when user double-clicks each pel interface, development device can be shown the primitive attribute under this pel, and according to user's operation, the corresponding function of this pel is done further to revise;
The logic execution sequence of development device after according to above-mentioned line, XML label editing is become to XML data file, and issue this XML data file and carry out interface testing to testing server, the parameters such as development device transmitting system user name, password, Session Topic, start time, meeting duration, to this test interface, are checked the test result that this test interface returns;
Development device is deployed to formal transcoding server by this XML data file, and this transcoding server loads the run time version corresponding with XML label in this XML data file, generates SOAP interface;
The follow-up SOAP interface exploitation of generation that can utilize becomes mobile APP.
Below the development device in the embodiment of the present invention is described, refers to Fig. 4, in the embodiment of the present invention, 400 1 embodiment of development device comprise:
Record module 401, for recording the data message of browser access Web application process;
Modular converter 402, for recording the data message that module 401 records and be converted to XML label, the corresponding pel of each XML label described;
Logic layout module 403, determines the logic execution sequence of the XML label that described modular converter 402 converts to for the line relation according to different pels;
Editor module 404, for becoming XML data file according to the logic execution sequence of the definite XML label of described Logic layout module 403 by described XML label editing;
Deployment module 405, for disposing described XML data file to server, makes described server load described XML data file, web service Web-Service interface corresponding to described XML data file provides.
In the embodiment of the present invention, record module 401 and record the data message in browser access Web application process, modular converter 402 is converted to XML label by this data message, the corresponding pel of each XML label, Logic layout module 403 is determined the logic execution sequence of this XML label according to the line relation of different pels, editor module 404 becomes XML data file according to this logic execution sequence by this XML label editing, deployment module 405 is disposed this XML data file to server, can make server load XML data file, Web-Service interface corresponding to this XML data file provide, like this, user only needs different pels to carry out line drafting, adjust the line relation of different pels, can edit XML data file, thereby be Web-Service interface by a Web application transcoding, in transcoding process, no longer need a large amount of codes to edit, only need the line relation of pel to adjust, realized the patterned development scheme of What You See Is What You Get, greatly simplify the complexity of transcoding process, significantly saved the cost that Web application is transformed into mobile application.
In embodiment, record module 401 and record the data message in browser access Web application process above, in actual applications, can obtain this data message by agency's mode is set, refer to Fig. 5, in the embodiment of the present invention, in development device 500, also comprise:
Agents modify module 501, is agent way for revising the connected mode of described browser, and wherein, the proxy server in described agent way points to the address that described development device provides.
Like this, by modification, act on behalf of, the interaction data in browser access Web application process will, through the address of development device appointment, be recorded module 401 and can to these data messages, record easily.
Above in embodiment, Logic layout module 403 is determined the logic execution sequence of the XML label that modular converter 402 converts to according to the line relation of different pels, in actual applications, when user draws line between pel and is related to, may change the line relation of each pel, redraw etc., refer to Fig. 6, in the embodiment of the present invention, in development device 600, also comprise:
Logic refresh module 601, during for line relationship change when described different pels, according to the line relation after changing, refreshes the logic execution sequence of described XML label.
Like this, logic refresh module 601 can refresh the logic execution sequence of XML label according to the line relation after changing, and makes this patterned programming mode real-time more by force and more flexible.
In embodiment, server loads XML data file above, web service Web-Service interface corresponding to this XML data file provide, in actual applications, the corresponding relation of this XML data file and Web-Service interface can be by searching existing protocol or file calls, also can set up in advance for development device, refer to Fig. 7, in the embodiment of the present invention, in development device 700, also comprise:
Set up module 701, for setting up the corresponding relation of described XML label and described Web-Service interface;
Web service Web-Service interface corresponding to this XML data file is specially:
The Web-Service interface that in XML data file, XML label is corresponding.
Can set up flexibly according to practical application request the corresponding relation of XML label and Web-Service interface like this.
In actual applications, show the attribute of XML label in the attribute due to the pel that adopts XML label to change, the function of XML label that can be corresponding by the attribute modification of modification pel, refers to Fig. 8, in the embodiment of the present invention, in development device 800, also comprises:
Modified module 801, for revising function corresponding to described XML label by revising the attribute of described pel.
In embodiment, deployment module 405 is disposed described XML data file to server, in actual applications above, before formal deployment, can also test this XML data file, refer to Fig. 9, in the embodiment of the present invention, development device 900 another embodiment comprise:
Test module 901, for issuing XML data file that described editor module 404 edits out to testing server, carries out interface testing to described XML data file, and receives the test result of described testing server feedback.
After obtaining the XML data file that editor module 404 edits out, test module 901 is published to this XML data file in testing server and tests, obtain test result, can to the XML data file obtaining, modify according to test result like this, make the XML data file that obtains more accurately and reliably.
From the angle of blocking functional entity, the development device the embodiment of the present invention is described above, from the angle of hardware handles, the development device the embodiment of the present invention is described below, refer to Figure 10, development device 1000 another embodiment in the embodiment of the present invention comprise:
Input media 1001, output unit 1002, processor 1003 and storer 1004 (wherein the quantity of the processor 1003 in development device 1000 can be one or more, and the processor 1003 of take in Figure 10 is example).In some embodiments of the invention, input media 1001, output unit 1002, processor 1003 and storer 1004 can be connected by bus or alternate manner, wherein, in Figure 10 to be connected to example by bus.
Wherein, by calling the operational order of storer 1004 storages, processor 1003, for carrying out following steps:
Record the data message in browser access Web application process;
Described data message is converted to expandable mark language XML label, the corresponding pel of each XML label;
According to the line relation of different pels, determine the logic execution sequence of described XML label;
According to the logic execution sequence of described XML label, described XML label editing is become to XML data file;
Dispose described XML data file to server, make described server load described XML data file, web service Web-Service interface corresponding to described XML data file provide;
In some embodiments of the present invention, this processor 1003 is also for carrying out following steps:
The connected mode of revising described browser is agent way, and wherein, the proxy server in described agent way points to the address that described development device provides;
In some embodiments of the present invention, this processor 1003 is also for carrying out following steps:
When the line relationship change of described different pels, according to the line relation after changing, refresh the logic execution sequence of described XML label;
In some embodiments of the present invention, this processor 1003 is also for carrying out following steps:
Set up the corresponding relation of described XML label and described Web-Service interface;
Web service Web-Service interface corresponding to described XML data file is specially:
Web-Service interface corresponding to XML label in described XML data file;
In some embodiments of the present invention, this processor 1003 is also for carrying out following steps:
By revising the attribute of described pel, revise function corresponding to described XML label;
In some embodiments of the present invention, this processor 1003 is also for carrying out following steps:
Issue described XML data file to testing server, described XML data file is carried out to interface testing, and receive the test result of described testing server feedback.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (12)
1. an application interface development approach, is characterized in that, comprising:
Development device is recorded the data message in browser access webpage Web application process;
Described development device is converted to expandable mark language XML label by described data message, the corresponding pel of each XML label;
Described development device is determined the logic execution sequence of described XML label according to the line relation of different pels;
Described development device becomes XML data file according to the logic execution sequence of described XML label by described XML label editing;
Described development device is disposed described XML data file to server, makes described server load described XML data file, web service Web-Service interface corresponding to described XML data file provides.
2. method according to claim 1, is characterized in that, the step that described development device is recorded the data message in browser access webpage Web application process also comprises before:
The connected mode that described development device is revised described browser is agent way, and wherein, the proxy server in described agent way points to the address that described development device provides.
3. method according to claim 1 and 2, is characterized in that, described development device becomes the step of XML data file also to comprise before described XML label editing according to the logic execution sequence of described XML label:
When the line relationship change of described different pels, described development device, according to the line relation after changing, refreshes the logic execution sequence of described XML label.
4. method according to claim 3, is characterized in that,
Described development device becomes the step of XML data file also to comprise before described XML label editing according to the logic execution sequence of described XML label:
Described development device is set up the corresponding relation of described XML label and described Web-Service interface;
Web service Web-Service interface corresponding to described XML data file is specially:
Web-Service interface corresponding to XML label in described XML data file.
5. method according to claim 4, is characterized in that, described development device becomes the step of XML data file also to comprise before described XML label editing according to the logic execution sequence of described XML label:
Described development device is revised function corresponding to described XML label by revising the attribute of described pel.
6. method according to claim 5, is characterized in that, described development device is disposed described XML data file and also comprised before the step of server:
Described development device is issued described XML data file to testing server, and described XML data file is carried out to interface testing, and receives the test result of described testing server feedback.
7. a development device, is characterized in that, comprising:
Record module, for recording the data message of browser access Web application process;
Modular converter, for recording the data message that module records and be converted to XML label, the corresponding pel of each XML label described;
Logic layout module, determines the logic execution sequence of the XML label that described modular converter converts to for the line relation according to different pels;
Editor module, for becoming XML data file according to the logic execution sequence of the definite XML label of described Logic layout module by described XML label editing;
Deployment module, for disposing described XML data file to server, makes described server load described XML data file, web service Web-Service interface corresponding to described XML data file provides.
8. development device according to claim 7, its feature exists, and described development device also comprises:
Agents modify module, is agent way for revising the connected mode of described browser, and wherein, the proxy server in described agent way points to the address that described development device provides.
9. according to the development device described in claim 7 or 8, it is characterized in that, described development device also comprises:
Logic refresh module, during for line relationship change when described different pels, according to the line relation after changing, refreshes the logic execution sequence of described XML label.
10. development device according to claim 9, is characterized in that, described development device also comprises:
Set up module, for setting up the corresponding relation of described XML label and described Web-Service interface;
Web service Web-Service interface corresponding to described XML data file is specially:
Web-Service interface corresponding to XML label in described XML data file.
11. development devices according to claim 10, is characterized in that, described development device also comprises:
Modified module, for revising function corresponding to described XML label by revising the attribute of described pel.
12. development devices according to claim 11, is characterized in that, described development device also comprises:
Test module, for issuing XML data file that described editor module edits out to testing server, carries out interface testing to described XML data file, and receives the test result of described testing server feedback.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410400564.4A CN104166551B (en) | 2014-08-14 | 2014-08-14 | A kind of application interface development approach and development device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410400564.4A CN104166551B (en) | 2014-08-14 | 2014-08-14 | A kind of application interface development approach and development device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104166551A true CN104166551A (en) | 2014-11-26 |
CN104166551B CN104166551B (en) | 2017-11-24 |
Family
ID=51910385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410400564.4A Active CN104166551B (en) | 2014-08-14 | 2014-08-14 | A kind of application interface development approach and development device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104166551B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484380A (en) * | 2015-08-28 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of generation method of product documentation and device |
CN107153599A (en) * | 2017-06-14 | 2017-09-12 | 上海点融信息科技有限责任公司 | A kind of method and apparatus of record and replaying user operation |
CN110020359A (en) * | 2017-11-08 | 2019-07-16 | 亿阳信通股份有限公司 | Apply the data processing method in webpage front-end, device and storage medium |
CN113190514A (en) * | 2021-05-10 | 2021-07-30 | 成都微视联软件技术有限公司 | Method for inputting data into electronic document according to priority order |
CN115001991A (en) * | 2022-08-02 | 2022-09-02 | 北京聚合盈创科技有限公司 | Recording method and device based on performance test and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080040466A1 (en) * | 2006-06-22 | 2008-02-14 | Sun Microsystems, Inc. | System and method for object-oriented meta-data driven instrumentation |
CN101246564A (en) * | 2007-12-21 | 2008-08-20 | 浪潮电子信息产业股份有限公司 | Assets management system based on web service for defining assets with XML |
CN101631262A (en) * | 2009-08-25 | 2010-01-20 | 中兴通讯股份有限公司 | VoiceXML business integrated development system and realizing method thereof |
CN101853156A (en) * | 2010-05-12 | 2010-10-06 | 上海普元信息技术股份有限公司 | Method for realizing web service call in component-based software system |
CN102255961A (en) * | 2011-06-30 | 2011-11-23 | 重庆新媒农信科技有限公司 | Java 2 micro edition (J2ME)-based Web Service interface calling method |
CN102360291A (en) * | 2011-10-07 | 2012-02-22 | 云南爱迪科技有限公司 | Service-oriented business rule design method based on business rule engine |
CN102520953A (en) * | 2011-12-15 | 2012-06-27 | 北京航空航天大学 | Page generating method based on BPMN (business process modeling notation) and device |
US20130117356A1 (en) * | 2011-11-05 | 2013-05-09 | Kyocera Document Solutions Inc. | Storage Device Including Software Development Kit that Includes Web Service Interface and Terminal Apparatus Including the Software Development Kit |
CN103581343A (en) * | 2013-11-28 | 2014-02-12 | 蓝盾信息安全技术股份有限公司 | Http (hyper text transport protocol) request recording method |
-
2014
- 2014-08-14 CN CN201410400564.4A patent/CN104166551B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080040466A1 (en) * | 2006-06-22 | 2008-02-14 | Sun Microsystems, Inc. | System and method for object-oriented meta-data driven instrumentation |
CN101246564A (en) * | 2007-12-21 | 2008-08-20 | 浪潮电子信息产业股份有限公司 | Assets management system based on web service for defining assets with XML |
CN101631262A (en) * | 2009-08-25 | 2010-01-20 | 中兴通讯股份有限公司 | VoiceXML business integrated development system and realizing method thereof |
CN101853156A (en) * | 2010-05-12 | 2010-10-06 | 上海普元信息技术股份有限公司 | Method for realizing web service call in component-based software system |
CN102255961A (en) * | 2011-06-30 | 2011-11-23 | 重庆新媒农信科技有限公司 | Java 2 micro edition (J2ME)-based Web Service interface calling method |
CN102360291A (en) * | 2011-10-07 | 2012-02-22 | 云南爱迪科技有限公司 | Service-oriented business rule design method based on business rule engine |
US20130117356A1 (en) * | 2011-11-05 | 2013-05-09 | Kyocera Document Solutions Inc. | Storage Device Including Software Development Kit that Includes Web Service Interface and Terminal Apparatus Including the Software Development Kit |
CN102520953A (en) * | 2011-12-15 | 2012-06-27 | 北京航空航天大学 | Page generating method based on BPMN (business process modeling notation) and device |
CN103581343A (en) * | 2013-11-28 | 2014-02-12 | 蓝盾信息安全技术股份有限公司 | Http (hyper text transport protocol) request recording method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484380A (en) * | 2015-08-28 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of generation method of product documentation and device |
CN106484380B (en) * | 2015-08-28 | 2020-10-16 | 中兴通讯股份有限公司 | Method and device for generating product document |
CN107153599A (en) * | 2017-06-14 | 2017-09-12 | 上海点融信息科技有限责任公司 | A kind of method and apparatus of record and replaying user operation |
CN110020359A (en) * | 2017-11-08 | 2019-07-16 | 亿阳信通股份有限公司 | Apply the data processing method in webpage front-end, device and storage medium |
CN110020359B (en) * | 2017-11-08 | 2024-04-05 | 亿阳信通股份有限公司 | Data processing method, device and storage medium applied to front end of webpage |
CN113190514A (en) * | 2021-05-10 | 2021-07-30 | 成都微视联软件技术有限公司 | Method for inputting data into electronic document according to priority order |
CN113190514B (en) * | 2021-05-10 | 2023-04-18 | 成都微视联软件技术有限公司 | Method for inputting data into electronic document according to priority order |
CN115001991A (en) * | 2022-08-02 | 2022-09-02 | 北京聚合盈创科技有限公司 | Recording method and device based on performance test and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104166551B (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11861334B2 (en) | Providing communication between a client system and a process-based software application | |
US8561048B2 (en) | Late and dynamic binding of pattern components | |
CN109117138B (en) | Configuration method and device and computer readable storage medium | |
US7925977B2 (en) | Architecture solution map builder | |
CN101216838B (en) | XML interface configuration file distribute system and method based on WEB marker | |
CN112561386A (en) | Method, device and equipment for acquiring business process | |
US9846849B2 (en) | System and method for providing an editor for use with a business process design environment | |
US9990595B2 (en) | Modeled service endpoints in business process model and notation tools | |
US20080127133A1 (en) | Aggregating portlets for use within a client environment without relying upon server resources | |
US8812964B2 (en) | Managing evelopment of an enterprise application | |
CN104166551A (en) | Application interface developing method and developing device | |
US20130067456A1 (en) | Application configuration framework for enterprise resource planning application installation | |
US11366704B2 (en) | Configurable analytics for microservices performance analysis | |
CN113050946A (en) | Method and device for generating website application system, electronic equipment and storage medium | |
US8966434B2 (en) | Repository based development using project development tools in enterprise management environment | |
US11315208B2 (en) | Conceptual representation of business processes for cross-domain mapping | |
CN113568614A (en) | Task issuing method, electronic device and storage medium | |
CN111124924B (en) | API deployment method and device, electronic equipment and storage medium | |
CN112925519A (en) | Workflow creating method and device | |
US20070153706A1 (en) | Design time support for service adaptation | |
US20100269089A1 (en) | Method and system for generation of reusable design patterns | |
CN113656041A (en) | Data processing method, device, equipment and storage medium | |
Tuyishime et al. | Dynamic Provisioning of REST APIs for Model Management | |
CN113806596B (en) | Operation data management method and related device | |
CN118838585A (en) | Component generation method, device, equipment and storage medium based on low-code platform |
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 |