CN111596896B - Interface calling method, device, equipment and medium adapting to different languages - Google Patents

Interface calling method, device, equipment and medium adapting to different languages Download PDF

Info

Publication number
CN111596896B
CN111596896B CN202010339250.3A CN202010339250A CN111596896B CN 111596896 B CN111596896 B CN 111596896B CN 202010339250 A CN202010339250 A CN 202010339250A CN 111596896 B CN111596896 B CN 111596896B
Authority
CN
China
Prior art keywords
service
interface
calling
com
component
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
Application number
CN202010339250.3A
Other languages
Chinese (zh)
Other versions
CN111596896A (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.)
Xi'an Zhenyou Communication Technology Co ltd
Original Assignee
Xi'an Zhenyou Communication Technology 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 Xi'an Zhenyou Communication Technology Co ltd filed Critical Xi'an Zhenyou Communication Technology Co ltd
Priority to CN202010339250.3A priority Critical patent/CN111596896B/en
Publication of CN111596896A publication Critical patent/CN111596896A/en
Application granted granted Critical
Publication of CN111596896B publication Critical patent/CN111596896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to an interface calling method, device, equipment and medium adapting to different languages, wherein the method comprises the following steps: registering com components; creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge; introducing a com component library and calling a component library interface; acquiring data packet processing, and adopting IIS release service; the dispatch service server calls webservice service; and the dispatching service server performs corresponding processing on the service data. The invention provides a method for adapting interface call establishment between different languages, which solves the problem that a C# call C/C++ component (and a com component uses a pointer callback) encounters a mismatch between the component and the prior system version. The invention can meet the requirement of a dispatching system without the support of a third party, can successfully call the third party interface, provides convenience for use, and has simple realization and high reliability.

Description

Interface calling method, device, equipment and medium adapting to different languages
Technical Field
The present invention relates to the field of software interface calling technologies, and in particular, to a method and apparatus for adapting to interface calling in different languages, a computer device, and a readable storage medium.
Background
The software interface is a bridge for realizing information interaction between one system and another system, and two types of tight coupling and loose coupling exist between different systems according to the different association degrees of the systems.
For various types of developers, a scenario of calling a third party API ((Application Programming Interface, application program interface)) is often encountered in daily work. Particularly conforming emergency systems, often require interfacing between various types of components or external systems. Because there are many implementations of APIs (application program interfaces), the client call is different from implementation to implementation. When the interface is developed, the interface is also considered to be developed towards the web front end or the mobile phone app or the server. The overall planning of different application scenario interfaces is different.
When is a third party to be docked? Of course, when there is a need. For example, the dispatch system may want to perform a facsimile transmission function. In case of doing the matter by oneself, the research and development are carried out purely by own hand, and a lot of resources are needed to be used, and the law: product type selection, module design, code development, testing and the like. Such a flow takes a long time. At this time, there is already a mature solution on the market. The collaboration is fully selectable, and this kind of things is handed to a professional. Thus, the method can solve the problem by utilizing the capacity of professionals and save time.
However, the fact is not as perfect as that described above. Such problems are often encountered in practical docking procedures. Such as:
1. the details are not controlled in place; the third party only makes a general interface description, and does not monitor the stability of the interface. Some details are not considered, and when the actual scene occurs, the interface is abnormal.
2. Communication is not smooth, and business cannot be unfolded; what content needs to be provided with the opponent's appointment, the opponent can effectively process and return the required results. However, in the early communication stage, the third party is not matched. Resulting in no deployment of later traffic at all.
3. The interface provided by the other party cannot adapt to the current software architecture; the third party external interface is specific to many partners, but is not specifically designed for individual use. This results in a software system to which the interface is not adaptable;
4. the interface of the other party is unstable, so that the system cannot have robustness; the other party must be said to be very stable, but in practice must not be guaranteed. During the operation of the system, the called interface often has an abnormal condition.
5. The other party does not provide technical support. Individual vendors have not maintained their own products and have not arranged personnel to support them. The interface has problems, and no place is found to solve.
6. The document description is not clear. The interface provided by the third party may be too simple to interpret or the interface document provided may be too complex. Simple documents do not specify interface details. The complex document is just like a book, and the key points cannot be found at all.
The scheduling system faces many docking situations. For example: view plug-in docking, fax docking, GPS docking, address book docking, PDT docking, SMS docking, video conference plug-in docking, and the like. Most docking does not have the docking problems described above, and employs simple sockets, message queues (Message queues), webService, etc. In the process of interface and system information interaction, synchronous call and asynchronous call modes are adopted. After the synchronous call is sent out, the server must wait for the response of the server, and if the server does not respond for a long time, the server is blocked or overtime; after the asynchronous call makes a request, the program may perform other logic processing. The timing polling server replies to the message and the message or event notification.
However, the above-described docking problem arises when docking a part of the third party interface. The scheduling system needs to call a third party c++ component. The c++ component is called for C#, and the method in the component can be called simply by using DllImport. The fact is not so simple that the method in the interface is not called, the third party does not have technical support personnel, the third party does not provide document description, and the demo example is not provided.
Accordingly, the prior art is in need of improvement.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides an interface calling method and device adapting to different languages, computer equipment and a readable storage medium. The invention can meet the requirement of a dispatching system without the support of a third party, can successfully call the third party interface, provides convenience for use, and has simple realization and high reliability.
The technical scheme of the invention is as follows:
an interface calling method adapting to different languages, wherein the method comprises the following steps:
registering com components;
creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge;
introducing a com component library and calling a component library interface;
the data acquisition method is adopted for processing, and IIS release service is adopted;
the dispatch service server calls webservice service;
and the dispatching service server performs corresponding processing on the service data.
The interface calling method adapting to different languages, wherein the step method of registering com components comprises the following steps:
the manager identity runs a command window and registers com components;
see if com component registration was successful.
The interface calling method adapting to different languages, wherein the creation output type is a class library item, the target framework is selected as a framework version supported by a com component, and the framework version is used as an intermediate service bridge method: windows service, winform, console, and asp. Net website project.
The interface calling method adapting to different languages, wherein the creation output type is a class library item, the target frame is selected as a frame version supported by a com component, and the method is used as a step method of an intermediate service bridge:
creating a website class project MyWebService project;
matching a COM support frame; as an intermediate service bridge for subsequent calls to third party interfaces.
The interface calling method adapting to different languages, wherein the data acquisition method is used for processing and adopts a step method of IIS release service:
declaring a callback, and writing a specific callback function;
writing an interface method;
and deploying a program, acquiring data processing by a service interface, and adopting IIS release service.
The interface calling method adapting to different languages, wherein the scheduling service server side calls a webservice service step method:
the scheduling system calls the MyWebService service, and calls a service interface in the third party component through the MyWebService service.
The interface calling method adapting to different languages comprises the steps of correspondingly processing service data by the scheduling service end:
after referring to MyWebService, the scheduling system calls a connection creating method or a short message sending method, sends a short message and receives the short message;
and receiving an operation instruction of a dispatcher by the dispatching client to perform receiving and sending operation of the short message on the interface.
An interface calling device adapting to different languages, wherein the method comprises the following steps:
a registration module for registering com components;
the creation module is used for creating a framework version with the output type being a class library item and the target framework being selected as a framework version supported by the com component as an intermediate service bridge;
the introducing and calling module is used for introducing the com component library and calling the component library interface;
the acquisition and release module is used for acquiring data processing and adopting IIS release service;
the calling module is used for calling webservice service by the dispatching service server;
and the service processing module is used for scheduling the service server to correspondingly process the service data.
A computer device, a method memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of any of the interface calling methods adapted to different languages.
A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of any of the interface invocation methods adapted to different languages.
Compared with the prior art, the embodiment of the invention has the following advantages:
provided are an interface calling method and device adapting to different languages, a computer device and a readable storage medium, wherein the method adopts: registering com components; creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge; introducing a com component library and calling a component library interface; the data acquisition method is adopted for processing, and IIS release service is adopted; the dispatch service server calls webservice service; and the dispatching service server performs corresponding processing on the service data. The invention provides a method for adapting interface call establishment between different languages, which solves the problem that a C# call C/C++ component (and a com component uses a pointer callback) encounters a mismatch between the component and the prior system version. The invention can meet the requirement of a dispatching system without the support of a third party, can successfully call the third party interface, provides convenience for use, and has simple realization and high reliability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
Fig. 1 is a flowchart of a first embodiment of an interface calling method adapted to different languages according to the present invention.
Fig. 2 is a flowchart of a second embodiment of an interface calling method adapted to different languages according to the present invention.
Fig. 3 is a schematic structural diagram of an interface calling device adapted to different languages in an embodiment of the present invention.
Fig. 4 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The inventor finds that a software interface in the prior art is a bridge for realizing information interaction between one system and another system, and two types of tight coupling and loose coupling exist between different systems according to different association degrees of the systems; for various types of developers, a scenario of calling a third party API ((Application Programming Interface, application program interface)) is often encountered in daily work. Particularly, the emergency dispatch system often needs to be connected with various components or external systems; the C# calls the C/C++ component (and the com component uses pointer callbacks) to encounter the technical problem of component mismatch with the existing system version.
In order to solve the above-described problems, various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings in the examples of the present invention.
Referring to fig. 1, fig. 1 shows an interface calling method adapted to different languages according to an embodiment of the present invention, where the method includes the following steps:
step S10: registering com components;
in the embodiment of the invention, when registering com components, an administrator identity operation command window is adopted to register the com components; and checks whether the com component registered successfully. For example, the windows 7 operating system clicks a windows icon in the lower left corner, inputs cmd in the lowest input field, finds cmd in the program, exe, right key, runs with the manager identity, and inputs the registration command. With the highest administrator identity, the third party DLL file registration requires possession of administrator rights, otherwise registration fails.
In the invention, whether the com component is successfully registered is checked, and the corresponding file position can be checked according to the own operating system. Only if the location is accurate will the com component be successfully registered.
Step S20: creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge;
in the invention, the creation output type is adopted as a class library item, the target frame is selected as a frame version supported by the com component and used as an intermediate service bridge, wherein the item can be Windows service, wind, a console and an asp.net website item. For example, a website class item MyWebservice is created, and then the website class item MyWebservice can be deployed on isis (service manager of windows system), so that the interface method in MyWebservice can be accessed by other people or other programs.
The method comprises the steps that the creation output type is a class library item, a target frame is selected as a frame version supported by a com component, and the target frame is used as an intermediate service bridge:
creating a website class project MyWebService project;
matching a COM support frame; as an intermediate service bridge for subsequent calls to third party interfaces.
The benefit of this step is that intermediate services are needed to bridge when the third party component does not meet the framework version supported by the current system. Thus, the method can call the third party interface and meet the framework support of the current system.
Step S30: introducing a com component library and calling a component library interface;
in this step, for example, in MyWebservice engineering, a reference is added to find the com component location of the registration number, and then the registration number is introduced into the project. The processing of this step is that after referencing the com component, the method inside the com component can be called by using the using method.
Step S40: the data acquisition method is adopted for processing, and IIS release service is adopted;
in the invention, the data acquisition method is adopted for processing, and IIS release service is adopted.
When the method is implemented in a specific mode, a callback is declared, and a specific callback function is written; for example, a CallBack function needs to be declared, for example, a CallBack function CallBack (parameter) for receiving a short message is declared, and the number and types of parameters in the com interface method are consistent with those of the parameters. A specific method for creating a fallback function can assign the content of the received short message to a local short message entity. And smoothly taking the data returned by the third party interface by acquiring the function pointer.
Writing an interface method; such as the invocation of some common method in the interface. For example: logging in, creating connection, sending a short message method, obtaining an uplink short message method, closing the connection method and the like.
And deploying a program, acquiring data processing by a service interface, and adopting IIS release service. For example, after compiling the MyWebservice engineering successfully, the MyWebservice engineering is released to the isis catalog, and the user who wants to use the MyWebservice engineering can access the MyWebservice interface only by inputting the address released by isis to the outside through the browser. The invention obtains data through the service interface and adapts to the C# system of each large frame version.
Step S50: the dispatch service server calls webservice service;
for example, the framework on which the schedule depends is net frame work 4.6.2. The third party may need to operate the environment correctly net framework 4.0 or net framework 4.0Client, and after invoking the MyWebservice, the dispatcher may use the interface in the third party component directly through the MyWebservice.
The method has the advantages that the scheduling system does not need to care about the target frame version supported by the third-party component, and can smoothly complete the interface calling work only by docking with the local MyWebService service.
Step S60: and the dispatching service server performs corresponding processing on the service data.
In the invention, a dispatch service server calls webservice service, which comprises the following steps:
the scheduling system calls the MyWebService service, and calls a service interface in the third party component through the MyWebService service.
The step method of the dispatching business server side for carrying out corresponding processing on the service data is as follows:
after referring to MyWebService, the scheduling system calls a connection creating method or a short message sending method, sends a short message and receives the short message;
and receiving an operation instruction of a dispatcher by the dispatching client to perform receiving and sending operation of the short message on the interface.
For example, the dispatch system may invoke a create connection method, may invoke a send SMS method, etc. after referencing MyWebservice. After the short message is sent and the received short message can be called, the dispatcher can directly send and receive the short message on the interface at the dispatching client.
The method has the advantages that the scheduling system realizes own service requirements, and time is not delayed due to the fact that a third party language or a framework does not support the third party language or the framework.
The method according to the invention is described in detail below by way of a specific example of application:
as shown in fig. 2, the method for calling the interface adapted to different languages according to the embodiment of the present application includes the following steps:
step one: initially, COM components are registered. In the invention, an administrator identity runs a command window and registers com components;
examples: under the window 10 operating system, a windows icon in the lower left corner, a right key Windows PowerShell (administrator), inputs commands; run with administrator identity, register com component.
Clicking windows icon at the lower left corner under a window 7 operating system, inputting cmd in the lowest input field, finding cmd in a program, right-hand key, running with manager identity, and inputting a registration command; registering com components.
The method has the advantages that: the manager identity is highest in the invention, and the third party DLL file registration needs to have the manager authority, otherwise, the registration fails.
Wherein, COM component library: com is a language independent windows specification in which there are not only methods but also descriptive information that complies with the specification, such as which methods there are, what names, etc. The dynamic link library complying with the unified windows specification can be used for adding references without the need of dlamport, and the methods in the object browser can be seen, and the information in the object browser is written by a person writing the dynamic link library according to the com specification, so that the object browser can read out and see. Then can be used just like a normal net class library, because it is packaged with com operation vs, a typical flash component.
Step two: checking whether the com component is registered successfully;
examples: c, windows/System 32\is the place where 64bits DLL is placed;
c, windows/SysWOW64\is the place where the 32bits DLL is placed;
if the 64-bit operating system wants to register 32-bit dll. The dll path carriage return can be input by pressing the carriage return with cd/Windows/SysWOW 64 in the command window. I.e. a 32-bit dll can be registered.
Benefits are: and checking the corresponding file position according to the own operating system. Only if the location is accurate will the com component be successfully registered.
DLL dynamic library in the present invention: dll is a method (called function in c language) in dynamic link library, if a common dll written in c language is called, then dll is used, and typical windows api functions are all dll written in c language, so that dll is needed.
Step three: an output type is created as a class library item and the target framework is selected as the framework version supported by the com component. I.e., creating MyWebservice engineering, matching COM support frames.
For example, this item may be a Windows service, winform, console, asp. Net website item. For example, a website class item MyWebservice is created, and then the website class item MyWebservice can be deployed on isis (service manager of windows system), so that the interface method in MyWebservice can be accessed by other people or other programs.
The method has the advantages that: when the third party component does not meet the framework version supported by the current system, an intermediate service is needed to be used as a bridge. Thus, the method can call the third party interface and meet the framework support of the current system.
The IIS is an internet information service, which is an internet basic service provided by microsoft corporation based on the running Microsoft Windows.
IIS is a Web (Web page) service component in which legal Web servers, FTP servers, NNTP servers, and SMTP servers are used for Web browsing, file transfer, news services, and mail delivery, respectively, which makes it easy to distribute information over networks (legal Internet and local area networks).
IIS is an important organic component of enterprise identification system, and is the field of effective management which the enterprise must pay attention to in the Internet era. The business card is a business card of an enterprise on the Internet, and the enterprise can better hug the Internet age.
Step four: introducing a com component library; engineering is introduced into COM libraries.
For example: in MyWebservice engineering, a reference is added to find the com component location of the registration number and then introduced into the project.
The advantage of this step is that after referencing the com component, the method inside the com component can be called in between by using the using method.
Step five: declaring a callback, and writing a specific callback function;
examples: a CallBack function, such as a CallBack function CallBack (parameter) for receiving a short message, needs to be declared, and the number and types of parameters in the CallBack function CallBack are consistent with those of the com interface method. A specific method for creating a fallback function can assign the content of the received short message to a local short message entity.
The method has the advantages that: and smoothly taking the data returned by the third party interface by acquiring the function pointer.
Step six: calling a component library connecting buckle, writing an interface method, and calling the component library connecting buckle;
examples: some common methods in the interface are invoked. For example: logging in, creating connection, sending a short message method, obtaining an uplink short message method, closing the connection method and the like.
The method has the advantages that: the call to the com component method is implemented in MyWebservice engineering, and then the interface in MyWebservice can be used by the local system.
Step seven: deploying a program and publishing the program into a service;
examples: after compiling the MyWebservice engineering successfully, publishing the MyWebservice engineering to the isis catalog, and enabling a user who wants to use to access the MyWebservice interface by inputting an address published by isis to the outside through a browser.
The method has the advantages that: and acquiring data through a service interface, and adapting to the C# system of each large frame version.
Step eight: the dispatch service server calls webservice service;
examples: the framework of schedule dependencies is net frame work 4.6.2. The third party may need to operate the environment correctly net framework 4.0 or net framework 4.0Client, and after invoking the MyWebservice, the dispatcher may use the interface in the third party component directly through the MyWebservice.
Benefits are: the dispatching system does not need to care about the target frame version supported by the third party component, and can smoothly complete the interface calling work only by docking the local MyWebService service.
Step nine: the dispatching service server side carries out corresponding processing on the service data; i.e. processing data to realize the service.
Examples: after referring to the MyWebservice, the scheduling system may call a create connection method, may call a send short message method, and so on. After the short message is sent and the received short message can be called, the dispatcher can directly send and receive the short message on the interface at the dispatching client.
The method has the advantages that: the scheduling system realizes own business requirements, and time is not delayed due to the problem that a third party language or a framework does not support.
From the above, the invention provides a method for adapting the interface call establishment between different languages, which solves the problem that the C# call C/C++ component (and the com component uses the pointer callback) encounters the unmatched component and the prior system version. The invention can meet the requirement of a dispatching system without the support of a third party, can successfully call the third party interface, provides convenience for use, and has simple realization and high reliability.
Based on the above embodiment, the present invention further provides an interface calling device adapted to different languages, as shown in fig. 3, where the method of the device is as follows:
a registration module 41 for registering com components;
a creation module 42, configured to create an output type as a class library item, where the target frame is selected as a frame version supported by the com component, and serve as an intermediate service bridge;
an import and call module 43 for importing com component library and calling component library interface;
an acquisition and release module 44, configured to acquire data processing and use IIS release service;
a calling module 45, configured to call webservice by using a scheduling service end;
the service processing module 46 is configured to schedule the service server to perform corresponding processing on the service data, as described above.
In one embodiment, the present invention provides a computer device, which may be a terminal, with an internal structure as shown in fig. 4. The computer device method comprises a processor, a memory, a network interface, a display screen and an input system which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory method nonvolatile storage medium and the internal memory of the computer device. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of generating a natural language model. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input system of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the block diagram of fig. 4 is merely a partial structure related to the present application and does not constitute a limitation of the computer device to which the present application is applied, and that a specific computer device may methodically have more or less components than those shown, or may combine some components, or have different component arrangements.
The embodiment of the invention provides a computer device, a method memory and a processor, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
registering com components;
creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge;
introducing a com component library and calling a component library interface;
the data acquisition method is adopted for processing, and IIS release service is adopted;
the dispatch service server calls webservice service;
the dispatching service server side carries out corresponding processing on the service data; as described in detail above.
In summary, compared with the prior art, the embodiment of the invention has the following advantages:
the invention provides an interface calling method and device adapting to different languages, computer equipment and a readable storage medium, wherein the method adopts the following steps: the method comprises the following steps: registering com components; creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge; introducing a com component library and calling a component library interface; the data acquisition method is adopted for processing, and IIS release service is adopted; the dispatch service server calls webservice service; and the dispatching service server performs corresponding processing on the service data. The invention provides a method for adapting interface call establishment between different languages, which solves the problem that a C# call C/C++ component (and a com component uses a pointer callback) encounters a mismatch between the component and the prior system version. The invention can meet the requirement of a dispatching system without the support of a third party, can successfully call the third party interface, provides convenience for use, and has simple realization and high reliability.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. An interface calling method adapted to different languages, the method comprising:
registering com components;
creating a framework version with the output type being a class library item and selecting a target framework as a framework version supported by a com component as an intermediate service bridge;
introducing a com component library and calling a component library interface;
acquiring data packet processing, and adopting IIS release service;
the dispatch service server calls webservice service;
and the dispatching service server performs corresponding processing on the service data.
2. The interface calling method adapting to different languages according to claim 1, wherein said step of registering com components comprises:
the manager identity runs a command window and registers com components;
see if com component registration was successful.
3. The interface calling method for adapting to different languages according to claim 1, wherein the creating output type is a class library item, the target framework is selected as a framework version supported by the com component, and the creating output type is used as an intermediate service bridge and comprises: windows service, winform, console, and asp. Net website project.
4. The interface calling method for adapting to different languages according to claim 1, wherein the step of creating the output type is a class library item, the target frame is selected as a frame version supported by the com component, and the step of acting as an intermediate service bridge includes:
creating a website class project MyWebService project;
matching a COM support frame; as an intermediate service bridge for subsequent calls to third party interfaces.
5. The interface calling method for adapting to different languages according to claim 1, wherein the step of acquiring packet processing and adopting IIS release service comprises:
declaring a callback, and writing a specific callback function;
writing an interface method;
and deploying a program, acquiring data packet processing through a service interface, and adopting IIS release service.
6. The method for calling interfaces in different languages according to claim 1, wherein the step of calling webservice by the dispatch service server includes:
the scheduling system calls the MyWebService service, and calls a service interface in the third party component through the MyWebService service.
7. The method for calling interfaces adapted to different languages according to claim 1, wherein the step of the dispatch service server performing corresponding processing on service data includes:
after referring to MyWebService, the scheduling system calls a connection creating method or a short message sending method, sends a short message and receives the short message;
and receiving an operation instruction of a dispatcher by the dispatching client to perform receiving and sending operation of the short message on the interface.
8. An interface calling device adapted to different languages, comprising:
a registration module for registering com components;
the creation module is used for creating a framework version with the output type being a class library item and the target framework being selected as a framework version supported by the com component as an intermediate service bridge;
the introducing and calling module is used for introducing the com component library and calling the component library interface;
the acquisition and release module is used for acquiring data packet processing and adopting IIS release service;
the calling module is used for calling webservice service by the dispatching service server;
and the service processing module is used for scheduling the service server to correspondingly process the service data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of adapting interface call methods of different languages according to any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the interface calling method adapted to different languages of any of claims 1 to 7.
CN202010339250.3A 2020-04-26 2020-04-26 Interface calling method, device, equipment and medium adapting to different languages Active CN111596896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010339250.3A CN111596896B (en) 2020-04-26 2020-04-26 Interface calling method, device, equipment and medium adapting to different languages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010339250.3A CN111596896B (en) 2020-04-26 2020-04-26 Interface calling method, device, equipment and medium adapting to different languages

Publications (2)

Publication Number Publication Date
CN111596896A CN111596896A (en) 2020-08-28
CN111596896B true CN111596896B (en) 2023-06-02

Family

ID=72190728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010339250.3A Active CN111596896B (en) 2020-04-26 2020-04-26 Interface calling method, device, equipment and medium adapting to different languages

Country Status (1)

Country Link
CN (1) CN111596896B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847100A (en) * 2010-06-08 2010-09-29 用友软件股份有限公司 Method for expanding software application and device
CN105302575A (en) * 2015-11-19 2016-02-03 中国移动通信集团广东有限公司汕头分公司 Foundational development framework
CN106155697A (en) * 2016-07-30 2016-11-23 北京慧摩尔科技有限公司 A kind of service-oriented Development Framework (YC Framework)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856736B2 (en) * 2011-05-10 2014-10-07 Microsoft Corporation Web service proxy interface augmentation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847100A (en) * 2010-06-08 2010-09-29 用友软件股份有限公司 Method for expanding software application and device
CN105302575A (en) * 2015-11-19 2016-02-03 中国移动通信集团广东有限公司汕头分公司 Foundational development framework
CN106155697A (en) * 2016-07-30 2016-11-23 北京慧摩尔科技有限公司 A kind of service-oriented Development Framework (YC Framework)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐迎晖 ; .基于.NET的WEB数据库中间件的设计与实现.计算机技术与发展.2006,(09),全文. *

Also Published As

Publication number Publication date
CN111596896A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
US10244058B2 (en) Extending functionality of applications
US11816492B2 (en) Third party integration of plugins and widgets
US20200183710A1 (en) Deploying cross-platform applications on mobile devices with native and web components
US20110055848A1 (en) Launching an midp-based target application from a launcher application
US8768884B2 (en) Synchronization of dissimilar databases
US10754717B2 (en) Fast and accurate identification of message-based API calls in application binaries
US20050027853A1 (en) System and method for collecting data regarding network service operation
CN112052263A (en) Method, system, computer device and readable storage medium for requesting instruction processing
CN112930530B (en) Client application for network application execution
CN112346794A (en) Interface calling method, device, equipment and medium
JP2006164265A (en) Enablement of resource sharing between subsystems
US9128886B2 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
CN111596896B (en) Interface calling method, device, equipment and medium adapting to different languages
CN114205848B (en) Virtual WIFI surfing method and device, computer equipment and storage medium
US8522256B2 (en) Hosting non-messaging workflows in a messaging host
CN114461223A (en) Code generation method and device and terminal equipment
US7523469B2 (en) Enabling inter-subsystem resource sharing
CN108804236B (en) AIDL file sharing method and system
CN116192784B (en) Message notification method, device and equipment based on broadcast robot
CN112688863B (en) Gateway data processing method and device and electronic equipment
EP1764695A1 (en) Cross platform system and method for tracing communication between a smart card and a smart card related application
US8214499B2 (en) System and method for enabling software applications as a service in a non-intrusive manner
JP2000148471A (en) Computing system
CN113641679A (en) Data transfer method, data transfer system, computer device and medium
CN116578356A (en) Calling method and device of OCX object and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant