Movatterモバイル変換


[0]ホーム

URL:


CN108647033A - A kind of SDK automatic packaging methods of open platform - Google Patents

A kind of SDK automatic packaging methods of open platform
Download PDF

Info

Publication number
CN108647033A
CN108647033ACN201810288774.7ACN201810288774ACN108647033ACN 108647033 ACN108647033 ACN 108647033ACN 201810288774 ACN201810288774 ACN 201810288774ACN 108647033 ACN108647033 ACN 108647033A
Authority
CN
China
Prior art keywords
sdk
code
data
interface
open platform
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
Application number
CN201810288774.7A
Other languages
Chinese (zh)
Other versions
CN108647033B (en
Inventor
彭剑
王月超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan XW Bank Co Ltd
Original Assignee
Sichuan XW Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan XW Bank Co LtdfiledCriticalSichuan XW Bank Co Ltd
Priority to CN201810288774.7ApriorityCriticalpatent/CN108647033B/en
Publication of CN108647033ApublicationCriticalpatent/CN108647033A/en
Application grantedgrantedCritical
Publication of CN108647033BpublicationCriticalpatent/CN108647033B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present invention discloses a kind of SDK automatic packaging methods of open platform, is related to open platform SDK technical fields and includes the following steps:S1:The demand information of API administrative centers typing third-party platform, according to demand Automatic generation of information XML file;S2:XML file is read the data for becoming in memory and being consistent with the data structure of automatic code engine by JAVA codes;S3:Data transfer in memory to automatic code generating engine is generated into SDK interface codes;S4:The interface sections SDK code building ant is packaged script with Java code;S5:Operation ant, which is sent the commands to, by Java code is packaged script;S6:The code that entire SDK frameworks are included is compiled by ant scripts, generates .jar packets.S7:By inside entire SDK frameworks .jar packets and configuration file jointly be packaged claim zip packets.The present invention solves the problem of that SDK is to cause every time to develop SDK and update the needs a large amount of time by h coding and need to expend a large amount of manpowers in the prior art.

Description

A kind of SDK automatic packaging methods of open platform
Technical field
The present invention relates to open platform SDK technical fields more particularly to a kind of SDK automatic packaging methods of open platform.
Background technology
Currently, financial institution opens financial service by internet open platform, specifically for third-party platform in the form of APIIt calls, realizes that financial service openness is shared.For convenience of, fast access open platform, open platform communicated by SDK abstract APIs,Data transmission etc. reduces difficulty, the complexity of third party's access, shortens third party's turn-on time, and fast-developing business meets mutualThe demand that the development of networked product is maked rapid progress.And SDK encapsulates infrastructure service heavy workload, occupies the open exploitation of this serviceThe one third of time shortens entire production life cycle, needs in business to ensure service of goods high quality, quickly going into operation and reach the standard gradeWork except processing exploitation is by automating, configuration and development task parallel processing solve, allow product development cycle whenBetween be used in business processing develop, ensure quality, meet banking development need.
SDK codes layering at present is not clear enough, public use code, product renewing and the newly-increased communication not influenced, dataClose Deng codes are added and subtracted, causes all SDK codes to be required for being tested after updating and increasing newly, increases code walkthrough and surveyThe work of examination.The SDK development times are too long, occupy product development total time percentage it is excessively high, seriously affected product marketing andIt uses, is unsatisfactory for the demand of internet development.
Also, existing SDK is formed by programmer h coding, causes to increase product or service of goods interface newly every timeIt needs developer to develop and update SDK when changing all, needs to carry out the streams such as Walkthrough, version management, test examination to codeJourney.Existing SDK common codes and interface code safeguard together with, update and exploitation, need to carry out to overall code every timeJoint debugging is tested.
Invention content
It is an object of the invention to:All it is to cause every time to open SDK by h coding to solve SDK in the prior artThe problem of hair and update need a large amount of time and need to expend a large amount of manpowers, the present invention provide a kind of SDK of open platform fromDynamic packaging method.
Of the invention and technical solution is as follows:
A kind of SDK automatic packaging methods of open platform, include the following steps:
S1:The demand information of API administrative centers typing third-party platform, according to demand Automatic generation of information XML file;
S2:XML file is read the number for becoming in memory and being consistent with the data structure of automatic code engine by JAVA codesAccording to;
S3:The data transfer obtained in S2 to automatic code generating engine is generated into SDK interface codes;
S4:SDK interface codes are generated into ant with Java code and are packaged script;
S5:Operation ant, which is sent the commands to, by Java code is packaged script;
S6:The code that entire SDK frameworks are included is compiled by ant scripts, generates .jar packets, wherein SDK frameworks are wrappedThe code contained includes the code and agreement layer identification code and data check layer identification code of the interface sections SDK.
S7:By inside entire SDK frameworks .jar packets and configuration file jointly be packaged claim zip packets;Shown configuration file isThe file .properties needed to configure when third-party platform is using SDK, it includes cryptographic certificate, APPID, network transmissionThe public key of domain name, certificate transport-type, open platform.
Specifically, the interface code includes entity class and class, entity class is called to be connect as the parameter for calling class method, workThe third party entered calls.
The S3 the specific steps are:It is generated according to data relationship in S2 and imports pack arrangement, then according to institute's total in S2According to generation SDK interfaces class and SDK entity class;
Specifically, the generation method of SDK interfaces class is:The tune of SDK interface classes is generated according to the interface name in data in S2With method and call method formal parameter;
The generation method of SDK entity class is:Interface name in S2 in data generates SDK entities class name and according to data in S2In attribute-name generate SDK entity class attribute.
Specifically, the SDK frameworks include:
SDK interface layer units, for realizing the calling of third-party platform;
Customization dispensing unit configures public information for third-party platform;
Interface data verifies regulation engine unit, and data standard and business norms are carried out for the data of third party and inputVerification;
Secure processing units, for the data in transmission process to be signed and encrypted;
Processing unit is configured, for running the public information of customization configuration of described dispensing unit applied to SDK;
Communication processing unit, the transmission communication for handling SDK and open platform.
After adopting the above scheme, beneficial effects of the present invention are as follows:
(1) SDK packets are updated and are increased newly in API and participate in encoding without artificial.After SDK automations, after API is increased newly and is updatedWithout h coding, newly-increased or update interface message is configured in API administrative centers, selects interface to be packaged SDK, can give birth to immediatelyThe quick test etc. for providing test at SDK packets, reducing developer's participation, while can realize interface.On code is at least thousands ofWan Hang is associated between each code, and contiguity is very strong between all codes, and a punctuate error routine all may be usedIt can cause to paralyse, automatic packaging is not necessarily to manual amendment's code, has saved great amount of cost, while improving reliability.
(2) product development cycle is reduced, the product development more time is given.Automatically generating for API is in interface exploitationIt carries out after the completion, former h coding needs 1-3 week exploitation to complete, and can be immediately generated now, reduce non-traffic flowThe time of exploitation, product development cycle is shortened, product development, test more time can be given, ensures that product high quality is reached the standard grade.
Description of the drawings
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodimentAttached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present inventionExample, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawingsObtain other attached drawings.Shown in attached drawing, above and other purpose of the invention, feature and advantage will be more clear.In wholeIdentical reference numeral indicates identical part in attached drawing.Actual size equal proportion scaling is not pressed deliberately draws attached drawing, emphasisIt is that the purport of the present invention is shown.
Fig. 1 is the flow chart of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the artThe every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
All it is to cause every time to develop SDK and update to need largely by h coding to solve the total SDK of the prior artTime and the problem of need to expend a large amount of manpowers, in the present invention, excel documents automatically analyze generating structure to code according to demandXml, requirement documents translate into for generate JAVA codes need data (wherein include code between dependence and tuneWith relationship), the structure of API templates and according to template utilize automatic code generating engine automatic code generating.According to automatic rawAt code engine Auto scheme, technology realization is that developer plays an active part in, the achievement of hard-working, cohesionThe painstaking effort of developer.SDK real time workshops can rapidly adapt to what product iteration was maked rapid progress for internet mechanismDemand substantially increases and generates efficiency and value output.It is noted that java codes described in the present invention are one kindCoding mode, method of the invention are not limited to java codes during realization, can also use php, python code, equallyIt can achieve the effect that the present invention.
Specifically, a kind of SDK automatic packaging methods of open platform of the present invention, include the following steps:
S1:The demand information of API administrative centers typing third-party platform, according to demand Automatic generation of information XML file;
S2:XML file is read the number for becoming in memory and being consistent with the data structure of automatic code engine by JAVA codesAccording to;In specific implementation, freemaker template engines may be used in automatic code engine;
The S3 the specific steps are:It is generated according to data relationship in S2 and imports pack arrangement, then according to institute's total in S2According to generation SDK interfaces class and SDK entity class;
Specifically, the generation method of SDK interfaces class is:The tune of SDK interface classes is generated according to the interface name in data in S2With method and call method formal parameter;
The generation method of SDK entity class is:Interface name in S2 in data generates SDK entities class name and according to data in S2In attribute-name generate SDK entity class attribute.
S4:The interface sections SDK code building ant is packaged script with Java code;
S5:Operation ant, which is sent the commands to, by Java code is packaged script;
S6:The code that entire SDK frameworks are included is compiled by ant scripts, generates .jar packets, wherein SDK frameworks are wrappedThe code contained includes the code and agreement layer identification code and data check layer identification code of the interface sections SDK.
The SDK frameworks include:
SDK interface layer units, for realizing the calling of third-party platform;
Customization dispensing unit configures public information for third-party platform;
Interface data verifies regulation engine unit, and data standard and business norms are carried out for the data of third party and inputVerification;
Secure processing units, for the data in transmission process to be signed and encrypted;
Processing unit is configured, for running the public information of customization configuration of described dispensing unit applied to SDK;
Communication processing unit, the transmission communication for handling SDK and open platform.
S7:By inside entire SDK frameworks .jar packets and configuration file jointly be packaged claim zip packets;Shown configuration file isThe file .properties needed to configure when third-party platform is using SDK, it includes cryptographic certificate, APPID, network transmissionThe public key of domain name, certificate transport-type, open platform.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyBelong to those skilled in the art in the technical scope disclosed by the present invention, the change or replacement that can be readily occurred in all are answeredIt is included within the scope of the present invention.

Claims (4)

CN201810288774.7A2018-04-032018-04-03SDK automatic packaging method for open platformActiveCN108647033B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810288774.7ACN108647033B (en)2018-04-032018-04-03SDK automatic packaging method for open platform

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810288774.7ACN108647033B (en)2018-04-032018-04-03SDK automatic packaging method for open platform

Publications (2)

Publication NumberPublication Date
CN108647033Atrue CN108647033A (en)2018-10-12
CN108647033B CN108647033B (en)2021-06-29

Family

ID=63745544

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810288774.7AActiveCN108647033B (en)2018-04-032018-04-03SDK automatic packaging method for open platform

Country Status (1)

CountryLink
CN (1)CN108647033B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2011150430A (en)*2010-01-192011-08-04Kyocera Mita CorpSdk distribution package generation device, sdk distribution package generation method, and sdk distribution package generation program
CN102968306A (en)*2012-11-292013-03-13广东全通教育股份有限公司Method and system for automatically generating code based on data model drive
CN103235718A (en)*2013-03-282013-08-07迈普通信技术股份有限公司Method and device for generating remote procedure call (RPC) code
CN103500087A (en)*2013-09-172014-01-08福建亿榕信息技术有限公司Code generation method and device based on maven plug-in and freemarker template
CN103713896A (en)*2013-12-172014-04-09北京京东尚科信息技术有限公司Software development kit generation method and device used for accessing server
CN103838572A (en)*2013-12-202014-06-04北京掌阔技术有限公司System and method for packing Android SDK
CN104317587A (en)*2014-10-222015-01-28中国人民解放军国防科学技术大学Automatic android mobile device oriented application generation method
CN104360833A (en)*2014-08-272015-02-18北京中电华大电子设计有限责任公司Customized JAVA card platform implementation method supporting security channel protocols
US20150271299A1 (en)*2014-03-212015-09-24Ptc Inc.System and method of abstracting communication protocol using self-describing messages
CN105049532A (en)*2015-08-282015-11-11北京奇艺世纪科技有限公司Method and device for packaging SDK package, and method and device for downloading SDK package
CN105718251A (en)*2014-12-032016-06-29苏宁云商集团股份有限公司Multilanguage SDK (software development kit) automatic implementation method and system
CN105760721A (en)*2016-01-292016-07-13北京奇虎科技有限公司Software hardening method and system
US9448776B1 (en)*2015-01-082016-09-20AppNotch LLCMethod and apparatus for converting a website into a native mobile application
CN106250164A (en)*2016-08-162016-12-21广州仕邦人力资源有限公司A kind of code generating method based on requirement documents and device
CN106528069A (en)*2015-09-152017-03-22阿里巴巴集团控股有限公司Software development kit (SDK) integration method and device
CN107066842A (en)*2017-03-282017-08-18福建天晴在线互动科技有限公司A kind of method and system of reinforcing SDK projects
CN107066291A (en)*2017-02-092017-08-18阿里巴巴集团控股有限公司Packaging method, device and the equipment of SDK, computer-readable recording medium
CN107092601A (en)*2016-02-172017-08-25阿里巴巴集团控股有限公司Resource file construction method, resource file application process and device
CN107291447A (en)*2017-05-172017-10-24四川新网银行股份有限公司A kind of method for automatically generating and issuing SDK codes
CN107678750A (en)*2017-10-272018-02-09北京腾云天下科技有限公司A kind of SDK packaging methods, computing device and SDK packaging systems

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2011150430A (en)*2010-01-192011-08-04Kyocera Mita CorpSdk distribution package generation device, sdk distribution package generation method, and sdk distribution package generation program
CN102968306A (en)*2012-11-292013-03-13广东全通教育股份有限公司Method and system for automatically generating code based on data model drive
CN103235718A (en)*2013-03-282013-08-07迈普通信技术股份有限公司Method and device for generating remote procedure call (RPC) code
CN103500087A (en)*2013-09-172014-01-08福建亿榕信息技术有限公司Code generation method and device based on maven plug-in and freemarker template
CN103713896A (en)*2013-12-172014-04-09北京京东尚科信息技术有限公司Software development kit generation method and device used for accessing server
CN103838572A (en)*2013-12-202014-06-04北京掌阔技术有限公司System and method for packing Android SDK
US20150271299A1 (en)*2014-03-212015-09-24Ptc Inc.System and method of abstracting communication protocol using self-describing messages
CN104360833A (en)*2014-08-272015-02-18北京中电华大电子设计有限责任公司Customized JAVA card platform implementation method supporting security channel protocols
CN104317587A (en)*2014-10-222015-01-28中国人民解放军国防科学技术大学Automatic android mobile device oriented application generation method
CN105718251A (en)*2014-12-032016-06-29苏宁云商集团股份有限公司Multilanguage SDK (software development kit) automatic implementation method and system
US9448776B1 (en)*2015-01-082016-09-20AppNotch LLCMethod and apparatus for converting a website into a native mobile application
CN105049532A (en)*2015-08-282015-11-11北京奇艺世纪科技有限公司Method and device for packaging SDK package, and method and device for downloading SDK package
CN106528069A (en)*2015-09-152017-03-22阿里巴巴集团控股有限公司Software development kit (SDK) integration method and device
CN105760721A (en)*2016-01-292016-07-13北京奇虎科技有限公司Software hardening method and system
CN107092601A (en)*2016-02-172017-08-25阿里巴巴集团控股有限公司Resource file construction method, resource file application process and device
CN106250164A (en)*2016-08-162016-12-21广州仕邦人力资源有限公司A kind of code generating method based on requirement documents and device
CN107066291A (en)*2017-02-092017-08-18阿里巴巴集团控股有限公司Packaging method, device and the equipment of SDK, computer-readable recording medium
CN107066842A (en)*2017-03-282017-08-18福建天晴在线互动科技有限公司A kind of method and system of reinforcing SDK projects
CN107291447A (en)*2017-05-172017-10-24四川新网银行股份有限公司A kind of method for automatically generating and issuing SDK codes
CN107678750A (en)*2017-10-272018-02-09北京腾云天下科技有限公司A kind of SDK packaging methods, computing device and SDK packaging systems

Also Published As

Publication numberPublication date
CN108647033B (en)2021-06-29

Similar Documents

PublicationPublication DateTitle
CN106095677B (en)The RESTful Webservice automatic interface testing methods realized based on Robot Framework
CN107516090B (en)Integrated face recognition method and system
Savchenko et al.Microservices validation: Mjolnirr platform case study
CN107506303A (en)Method, apparatus and system for automatic test
CN107480053A (en)A kind of Software Test Data Generation Method and device
CN109144618A (en)A kind of service flow execution method and relevant apparatus
CN107967214A (en)The test method and test equipment of application program
CN104038605A (en)Phone point of sale (POS) payment terminal transaction testing method
CN110489343A (en)A kind of conversational services test method, system, device and storage medium
CN108469998B (en)Universal software automation test framework system
CN110532044B (en)Big data batch processing method and device, electronic equipment and storage medium
CN106648556A (en)Front end and back end integrated development testing method and device
CN105701005A (en)OSGI (Open Service Gateway Initiative) based application frame test method and system
CN109376088A (en) An automated testing system and automated testing method
CN105279196A (en)Test script generation method and apparatus
CN109712000A (en) Method, Apparatus, Apparatus and Readable Storage Medium for Reinsurance Restriction
CN113590465A (en)Method for automatically generating mock service based on SDK
CN107566204A (en)Excited message produces control method, device and logic detection equipment
CN110287188A (en)The characteristic variable generation method and device of call detailed list data
Endo et al.Web services composition testing: a strategy based on structural testing of parallel programs
CN107948009A (en)The construction method and model of the data exchange channels of PLC protocol tests
CN108647033A (en)A kind of SDK automatic packaging methods of open platform
CN113434435B (en)Test case logic automatic generation method and device
CN108845931A (en)A kind of automated test frame based on natural language
CN117472782A (en)Transaction testing method and device, storage medium and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp