[go: up one dir, main page]

CN1819588A - Network service providing method based on middleware platform - Google Patents

Network service providing method based on middleware platform Download PDF

Info

Publication number
CN1819588A
CN1819588A CN 200610024440 CN200610024440A CN1819588A CN 1819588 A CN1819588 A CN 1819588A CN 200610024440 CN200610024440 CN 200610024440 CN 200610024440 A CN200610024440 A CN 200610024440A CN 1819588 A CN1819588 A CN 1819588A
Authority
CN
China
Prior art keywords
soap
car
packet
name
network service
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
CN 200610024440
Other languages
Chinese (zh)
Other versions
CN100512304C (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.)
KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Original Assignee
KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
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 KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI filed Critical KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Priority to CNB2006100244406A priority Critical patent/CN100512304C/en
Publication of CN1819588A publication Critical patent/CN1819588A/en
Priority to HK06113282.4A priority patent/HK1092973A1/en
Application granted granted Critical
Publication of CN100512304C publication Critical patent/CN100512304C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The method includes: the network server starts up CAR network service agent program on CAR middleware platform; the said program is used to analyze the packet of soap request or the packet of WSDL file downloading request, and to complete the service of the soap request and WSDL file downloading request. By using the invention, the existed software products on original middleware platform can be reused.

Description

The method of providing services on the Internet based on middleware platform
Technical field
The present invention relates to a kind of method of providing services on the Internet based on middleware platform, especially a kind of based on CAR (Component Assembly Runtime, parts dynamically assemble) middleware platform, the method for providing services on the Internet by operation CAR network service agent program on this CAR middleware platform.
Background technology
Along with development of internet technology, the technology of network service will be with SOA (Service OrientedArchitecture, Enterprise SOA) is framework, SOA is a measured tissue and method for designing, it is a protocol frame, it utilizes a series of network share service, makes IT can more closely serve operation flow.By adopting the standard interface that can hide the potential technology complexity, SOA can improve the rate of reusing of IT assets, thus the business service after having accelerated exploitation and having paid new enhancing more reliably.
In general SOA comprises three basic composition elements: service user, ISP and service register center.
Web services technologies based on the SOA notion is that direct To enterprises application program is integrated, for the operation flow of semi-automatic interactive mode and organization internal provides the public data switching plane.The technology that constitutes the network service comprises XML (Extensible Markup Language, autgmentability identifiable language), HTTP (Hypertext Transfer Protocol, HTML (Hypertext Markup Language)), SOAP (Simple ObjectAccess Protocol, Simple Object Access Protocol) and WSDL (Web Service DescriptionLanguage, webserver descriptive language).XML is used for the structure of message between the define grid service, and HTTP is the medium of communication of bottom, and SOAP is the container that exchanges messages, and WSDL is used to describe the network service.
At present, occurred many network service development instruments on the market, these network service development instruments can be divided into following a few class substantially:
The network service development platform of enterprise-level: typical case's representative of such developing instrument comprises Microsoft.NET, Sun J2EE, IBM WebSphere, BEA WebLogic, Systinet Webservices, Apache XML Project:Axis, Oracle 9i Application Server andJDeveloper, Borland JBuilder etc.Such developing instrument provides from programming language, uses class libraries a whole set of solution to running environment etc.Main advantage is the main flow developing instrument of network service at the network service development of enterprise-level.
The network service development instrument of lightweight: typical case's representative of such developing instrument comprises gSOAP, SOAP::Lite, easySOAP etc.The main advantage of such developing instrument is to be simple and easy to bells and whistleses such as usefulness or open source code, and such instrument often can not provide a whole set of network service to use class libraries and development platform.
Except two above class main flow developing instruments, some manufacturers also provide some network service development bags, and typical case's representative is Microsoft SOAP Toolkit (SOAP of a Microsoft kit).
Above-mentioned network service development instrument exists deficiency as described below: on the one hand, though occurred considerable network service development instrument in the market, but these instruments are often based on a whole set of architecture that rebulids, existing software product in the multiplexing original middleware platform of a kind of simple and effective way (for example CORBA, Microsoft DCOM etc.) is not provided.Often be widely used and actual conditions are these middleware platforms, reached sizable scale based on the product of these middleware platforms.On the other hand, though some software vendors have also issued some network service software kits to simplify the workload that the user utilizes original middleware product to provide services on the Internet, for example, the IDL that provides among the Microsoft SOAPToolkit (Interface Definition Language, IDL) file conversion instrument, but when issuing an original software finished product at every turn and be the network service, the developer still needs to finish suitable repeated workload.
Summary of the invention
The objective of the invention is to deficiency and defective at above-mentioned existing network service development instrument existence, a kind of method of providing services on the Internet based on middleware platform is provided, by the existing software product of this method in can multiplexing original middleware platform, and reduce the workload that repeats.
To achieve these goals, the invention provides a kind of method of providing services on the Internet based on middleware platform, this method may further comprise the steps:
The packet of step 1, remote client's the SOAP requested packets or the download request of wsdl document arrives the webserver, and the webserver starts CAR network service agent program on the CAR middleware platform;
Step 2, described CAR network service agent program are resolved the packet of the download request of described SOAP requested packets or wsdl document;
Step 3, described CAR network service agent program are finished the service of the download request of described SOAP request or wsdl document by described CAR middleware platform.
As shown from the above technical solution, the present invention is the support of adopting the CAR component technology that the SOA technology is provided, for the remote client provides services on the Internet.The CAR component technology is the programming model of component-oriented programming, and it has stipulated the standard called mutually between one group of member, makes that the binary system member can self-described, can dynamic link when operation.
The COM (Component Object Model, The Component Object Model) of the compatible Microsoft of CAR, but compare with the COM of Microsoft, CAR have deleted agreement out-of-date among the COM, forbid the non-self-described interface of user definition COM; The self-described function of complete member and interface thereof has realized the expansion to COM; The user interface of COM has been carried out simplifying packing, be easy to learn and use.
From top definition, we we can say that CAR is the subclass of the COM of Microsoft, while expands the COM of Microsoft again, at " with glad " SDK (Software Development Kit, SDK) under the support of instrument, make advanced component programming technology hard to understand be easy to be understood by the C/C++ programmer and grasp.The programming idea of CAR is the marrow of " with glad " technology, and it is in the realization of whole technique system.
CAR middleware platform (CAR member operation platform) is the level of abstraction of operating system, and operating system realizes by the CAR component technology, and various member services are provided, and various member services are registered as the name service on the CAR middleware platform.Naming service mechanism belongs to the part of CAR component technology, and the CAR component technology provides a kind of issue by naming service mechanism, obtains, and uses the method for CAR member, and the name service is under the jurisdiction of the user interface part of CAR component technology.Name service be a kind of be the service of sign with the character string, it is defined as: the mode that obtains corresponding registered service interface by certain specific name.Service routine can be by API (the Application Programming Interface of operating system, API) function is to the service interface of operating system registration and unregistration oneself, and the user of service then can obtain the service specified interface by api function.
In sum, the invention provides the existing software product in the multiplexing original CAR middleware platform of a kind of simple and effective way, make the remote client on the Internet can be by being registered as the component object of name service on the standard network service agreement visit CAR middleware platform (CAR member operation platform), the developing instrument of having realized other support network services exploitation be multiplexing to the CAR member; And whole issuing process is finished automatically by CAR network service operation environment fully, and transparent fully to the component development person, the person additionally finishes any work also not need the component development, has reduced developer's workload.
Below also the present invention is described in further detail in conjunction with the accompanying drawings by embodiment.
Description of drawings
Fig. 1 for the present invention based on the structural representation of CAR network service system;
Fig. 2 is the flow chart that the present invention is based on the method that middleware platform provides services on the Internet;
Fig. 3 is the flow chart that the present invention is based on the specific embodiment of the method that middleware platform provides services on the Internet;
Fig. 4 is for searching name service object's flow chart in the specific embodiment shown in Figure 3;
Fig. 5 is the flow chart of calling interface method in the specific embodiment shown in Figure 3;
Fig. 6 is applied each functional module of CAR network service agent and a correlation schematic diagram in the specific embodiment shown in Figure 3.
Embodiment
Referring to Fig. 1, its for the present invention institute based on CAR network service system structural representation, realize that based on the provide services on the Internet scheme of technology of method of CAR middleware platform be the CAR network service agent program (CAR network service agent) of moving on the CAR middleware platform.The service of client requests is resolved and finished to the service request that this program is sent by the Internet by webserver receiving remote client (SOAP service request or wsdl document download request).
Participate in Fig. 2, it is the flow chart that the present invention is based on the method that middleware platform provides services on the Internet, and comprises the steps:
Step 201, when the packet of the download request of remote client's SOAP requested packets or wsdl document arrives the webserver, the described webserver starts CAR network service agent program on the CAR middleware platform;
Step 202, described CAR network service agent program are resolved the packet of the download request of described SOAP requested packets or wsdl document;
Step 203, described CAR network service agent program are finished the service of the download request of described SOAP request or wsdl document by described CAR middleware platform.
Wherein the major function of CAR network service agent program is:
1, when receiving the SOAP far call of client, resolve the SOAP requested packets, and be transmitted to name services component object by the RMI mechanism that middleware platform provides and handle, return the result that interface method calls then;
2, when receiving the WSDL profile download requested packets of client, resolve WSDL profile download requested packets, and find corresponding name services component object according to the service discovery mechanisms that middleware platform provides, and generate the wsdl document of describing this service details automatically, and return this document according to its metadata.
On principle, CAR network service agent program may be implemented as a standard C GI (Common Gateway Interface, common gateway interface) program.But in the application of reality, consider efficient (to call efficient lower for the component interface of comparing alternately of cgi script and web application server) and flexibility, CAR network service agent program realizes by the CAR member.
Based on design idea of oriented object, CAR network service agent program can further be divided into a plurality of functional modules and realize with the CAR member respectively.
Referring to Fig. 3, it the steps include: for the flow chart of the specific embodiment of method of providing services on the Internet based on middleware platform of the present invention
Step 301, when the packet of remote client's SOAP requested packets or wsdl document download request arrives the webserver, the described webserver starts CAR network service agent program on the CAR middleware platform;
Step 302, described CAR network service agent program creation CAR network service agent module instance, initialization CAR network service agent module instance, and obtain CAR webserver state information;
Step 303, described CAR network service agent module instance receive the packet of the download request of described SOAP requested packets or wsdl document, create HTTP packet read/write modules example, and call HTTP packet header of packet that this example is resolved the download request of described SOAP requested packets or wsdl document, obtain described SOAP requested packets or wsdl document download request packet URL (Uniform Resoure Locator, uniform resource locator);
Step 304, establishment CAR name the service agent module example, and import described URL into to this example;
Step 305, call described CAR name service agent module example and search the corresponding name of the download request service object who whether exists in the described CAR middleware platform with described SOAP request or wsdl document, if, execution in step 306, otherwise execution in step 317;
Step 306, obtain described name service object's interface pointer;
Step 307, judge described SOAP request or wsdl document download request whether for HTTP GET request, if then execution in step 308, if not, step is execution in step 311 then;
Step 308, the method for calling CAR name service agent module example and providing obtain described name service object's metadata; Obtaining described name service object's metadata mainly finishes by reflection (Reflection) API that CAR member operation platform provides;
Step 309, establishment wsdl document generation module example import described metadata and server state information into this example, and generate wsdl document by this example;
Step 310, the content of wsdl document is copied in the HTTP return data bag, by HTTP packet read/write modules example output HTTP return data bag, execution in step 318 then;
Step 311, create the coding/decoding module instance, and described SOAP requested packets is decoded;
The example of step 312, establishment SOAP packet read/write modules, and by the decoded SOAP requested packets of this example parsing;
Step 313, call described name service object's interface method by the method for calling described CAR name service agent module example and providing;
Step 314, judge that interface method calls and whether make a mistake, if then execution in step 316, otherwise execution in step 315;
Step 315, coding/decoding module instance are encoded to the data that will export, and by SOAP packet read/write modules example and HTTP packet read/write modules example output SOAP result (Response) packet, execution in step 318 then;
Step 316, coding/decoding module instance are encoded to the data that will export, and by SOAP packet module for reading and writing example and HTTP packet module for reading and writing example output SOAP mistake (Fault) packet, execution in step 318 then;
Step 317, HTTP packet read/write modules example return error message;
Step 318, end.
In the present embodiment, whether the searching of step 305 exists the process of asking corresponding name service object with the user referring to Fig. 4 in the CAR middleware platform, its concrete operations can for:
After step 401, CAR name service agent module example are obtained URL, from character string, filter out the routing information of CAR network service agent program;
Step 402, the two-stage directory name that parses the residue character string save as name Service title and agency's interface name respectively;
Step 403, in the CAR middleware platform, search whether there is described name service object according to name Service title and agency's interface name, if then execution in step 306, otherwise execution in step 317;
In the present embodiment, name service object's the process of corresponding interface method that step 313 is described calls its agency is referring to Fig. 5, its concrete operations can for:
Step 501, read the metadata of calling interface method, be output parameter storage allocation space;
Step 502, according to the interface method metadata with input parameter, the output parameter pop down; Wherein input parameter is the information in the described SOAP requested packets;
Step 503, the relevant instruction calls interface method of hardware platform that uses assembler language to write;
Step 504, read the output parameter value in the parameter stack and return.
Referring to Fig. 6, it is applied each functional module of CAR network service agent program and a correlation schematic diagram in the specific embodiment shown in Figure 3.In the program operation process of reality, the realization of each functions of modules is to finish by dynamic establishment and the example that calls each module.
The applied module of CAR network service agent program comprises CAR network service agent module, HTTP packet read/write modules, SOAP packet read/write modules, coding/decoding module, CAR name service agent module, wsdl document generation module.Respectively each module is described below.
CAR network service agent module: major function is the mutual and Control Network service broker handling process with the webserver.Be used for the whole HTTP packet (packet of the download request of SOAP requested packets or wsdl document) that reception server sends over, and call other modules and handle, and the data that processing is returned are passed to server.
HTTP packet read/write modules: be used for handling and generate HTTP and ask (Request) and result (Response) packet; Handled and generate HTTP packet head by CAR network service agent module invokes; This module package the read-write operation of HTTP packet.Wherein http protocol itself is a standard WWW agreement.
SOAP packet read/write modules: be used for handling and generate SOAP and ask (Request), result (Response) and wrong (Fault) packet; Made by CAR network service agent module and to be used for handling and to generate the SOAP packet; This module is used to encapsulate the read-write operation of SOAP packet.Soap protocol itself also is standard WWW (World Wide Web, the World Wide Web (WWW)) agreement, follow the packing of soap protocol separates the packet format except needs, SOAP packet read/write modules also needs to safeguard the transformational relation between CAR data type and XSD (SOAP) data type: when resolving the SOAP packet, be the CAR data type with the XSD data type conversion of input parameter; When writing the SOAP packet, be the XSD data type with output parameter CAR data type conversion.
At last, consider efficient, be to handle (perhaps writing) while reading during this resume module SOAP packet, rather than once all data reads arrived internal memory while handling.The advantage that adopts this method is the space complexity that can farthest reduce processing procedure under the prerequisite of not obvious increase time complexity.
The coding/decoding module:
Be used for SOAP packet UTF-8, Base64, the coding and decoding of hex format text, wherein UTF-8 is the acquiescence coded system in the system.This module is decoded as the preceding initial data of coding with coded data, and perhaps the data that will transmit are encoded.For example, for transport-type is the parameter of Byte array, just the data content of storing in the array must be transmitted through being included in the SOAP packet after encoding.
CAR names service agent module:
Be used for the call request of transmission network service and obtain the agency service instance metadata; Called by CAR member Agent, be used to carry out mutual with CAR member example.This module is used to encapsulate all visits to CAR name services component example, that is to say, can be not directly in other any module and CAR name services component example produce any alternately, and the function of just calling this module realizes the visit to member name service.Make CAR member Agent not need directly and the CAR middleware platform carries out alternately by this module, thereby shielded the middleware platform characteristic, get ready for being transplanted to other middleware platform later on.
The wsdl document generation module:
This module is used for generating the WSDL format file according to the metadata of the CAR member example of input and webserver information.Specifically, the metadata of interface of CAR name services component example is used to generate the Type Scheme (type declarations) of WSDL document, PortType (port type), Message (message) part; The instance metadata of CAR name services component example is used to generate Port (port) (mainly being meant SOAP Address (the address)) part of WSDL document, adopt following naming rule in the present realization: " http://HOST[:PORT]/CARWSStubPath/SERVICE/INTERFACE.car ", wherein HOST represents Hostname, PORT represents the port that the webserver is monitored, CARWSStubPath represents the path that CAR network service agent program is stored, SERVICE represents CAR name services component title, and INTERFACE represents interface name; Webserver information is used to be provided with the procotol carrier information (http protocol) of Binding (binding) the part use of WSDL document, document Namespace (name space) and the soap protocol version number that uses, coded system (acquiescence is used the RPC mode).
The webserver:
On function, the webserver in this system should be the web application server of a standard, therefore can use in principle and comprise SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol), HTTP is at interior any type of network server, the standard interactive mode that the interactive mode of itself and CAR network service agent program is followed web application server and application program gets final product (for example CGI mode), in the application of reality, the simple HTTP webserver (here and the later content of this paper all discuss based on http protocol) of a componentization realizes based on having created with the CAR network service system of glad 2.0 operating systems, its main cause is: network service standard agreement SOAP and WSDL are the application layer protocols based on XML that is implemented on the procotol (for example HTTP etc.) that has been widely used, all must transmit data as carrier with one of these procotols by the remote request of the Internet, wherein at present by the most widely used be exactly http protocol; With also do not realize or transplant any general or Embedded http server on glad 2.0 operating systems; Orientate embedded OS as with glad 2.0 operating systems, do not need to realize a powerful http server.
The name services component that said method has been simplified on the issue middleware platform is the whole process of network service: on the one hand, need not existing member in the system is carried out any modification; On the other hand, the realization of this process only need move a webserver, need not to carry out complicated configuration.After finishing start-up course, the name services component object on all CAR middleware platforms all can be visited by the remote client by the standard network service agreement automatically.Realized support at present to WSDL and soap protocol.
For the wsdl document download request, according to the network service standard, the network service all should be carried out self-described by the WSDL service description file, and is published to the Internet.Present realization is finished by http protocol, and client can be downloaded wsdl document by HTTP URL form.For example: the HTTPURL form by " http://HOST[:PORT]/CARWSStubPath/SERVICE/INTERFACE.wsdl " is downloaded wsdl document.The WSDL of all name services component examples describes by CAR network service agent program and generates automatically when moving.
Be that an issue adder member example is the specific embodiment of network service below, at first need to create a CAR member example and be registered as the name service that shown in the following code, define an adder CAR member, this member has been realized interface ICalculator.
[
version(1.0),
urn(calculator.dll)
]
component?calculator
{
interface?ICalculator{
HRESULT?Add([in]long?a,[in]long?b,[out]long*c);
}
}
Suppose that the user is registered the CAR name service that is called calculator of running after fame (the API EzRegisterService that provides by the CAR naming service mechanism) with an example of this member.Then the user can be by HTTP URL: " http://HOST[:PORT]/CARWSStubPath/cal culator.wsdl " obtains the wsdl document of this service of description.Wsdl document thes contents are as follows:
<?xml?version="1.0"encoding="UTF-8"?>
<definitions?name="calculator"
targetNamespace="urn:car-remote-service"
xmlns:tns="urn:car-remote-service"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message?name="AddReq">
<part?name="a"type="xsd:int"/>
<part?name="b"type="xsd:int"/>
</message>
<message?name="AddRes">
<part?name="result"t?ype="xsd:int"/>
<part?name="c"type="xsd:int"minOccurs="0"maxOccurs="1"nillable="true"/>
</message>
<portType?name="CARIfPortType">
<operation?name="Add"parameter0rder="abc">
<input?message="tns:AddReq"/>
<output?message="tns:AddRes"/>
</operation>
</portType>
<binding?name="calculatorICalculatorBinding"
type="tns:CARIfPortType">
<SOAP:binding?style="rpc"transport="http://schemas
.xmlsoap.org/soap/http"/>
<operation?name="Add">
<SOAP:operation?style="rpc"soapAction=""/>
<input>
For the SOAP service request, because SOAP and WSDL are the network service protocol of standard, so the application program of any third party's network service client terminal developing instrument exploitation all can be visited this network service.
Still be that the network service is an example with a top issue adder member example, the theing contents are as follows (not comprising the http protocol head) of the packet of its SOAP service request.Attention: for different developing instruments, the XML document form that generates SOAP Request (request) may be slightly different, but content is consistent.
<?xml?version="1.0"encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAp-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="urn:car-remote-service">
<SOAP-ENV:Body?id="_0"SOAP-ENV:encodingStyle="http://
schemas.xmlsoap.org/soap/encoding/">
<ns1:Add>
<a>0</a>
<b>0</b>
</ns1:Add>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
After receiving as directed input information, after the processing through CAR network of network service broker, can return following SOAP result data bag to the family:
<?xml?version="1.0"encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-EN="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="urn:car-remote-service">
<SOAP-ENV:Body?id="_0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<ns1:AddResponse>
<result>0</result>
<c>0</c>
</ns1:AddRe?sponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (4)

1, a kind of method of providing services on the Internet based on middleware platform is characterized in that may further comprise the steps:
Step 1, when the packet of the download request of remote client's SOAP requested packets or wsdl document arrives the webserver, the described webserver starts CAR network service agent program on the CAR middleware platform;
Step 2, described CAR network service agent program are resolved the packet of the download request of described SOAP requested packets or wsdl document;
Step 3, described CAR network service agent program are finished the service of the download request of described SOAP request or wsdl document by described CAR middleware platform.
2, method of providing services on the Internet based on middleware platform according to claim 1 is characterized in that described step 2 is specially:
Step 201, establishment CAR network service agent module instance, initialization CAR network service agent module instance, and obtain CAR webserver state information;
Step 202, described CAR network service agent module instance receive the packet of the download request of described SOAP requested packets or wsdl document, create HTTP packet read/write modules example, and call HTTP packet header of packet that this example is resolved the download request of described SOAP requested packets or wsdl document, obtain the URL of packet of the download request of described SOAP requested packets or wsdl document;
Described step 3 is specially:
Step 301, establishment CAR name the service agent module example, and import described URL into to this example;
Step 302, call described CAR name service agent module example and search the corresponding name of the download request service object who whether exists in the described CAR middleware platform with described SOAP request or wsdl document, if exist, execution in step 303, otherwise execution in step 314;
Step 303, obtain the interface pointer with described name service object;
Step 304, judge described SOAP request or wsdl document download request whether for HTTP GET request, if then execution in step 305, if not, then execution in step 308;
Step 305, the method for calling CAR name service agent module example and providing are obtained described name service object's metadata;
Step 306, establishment wsdl document generation module example import described metadata and server state information into this example, and generate wsdl document by this example;
Step 307, the content of wsdl document is copied in the HTTP return data bag, export described HTTP return data bag by HTTP packet read/write modules example, execution in step 315 then;
Step 308, create the coding/decoding module instance, and described SOAP requested packets is decoded;
Step 309, create the example of SOAP packet read/write modules, and resolve decoded SOAP requested packets by this example;
Step 310, call described name service object's interface method by the method for calling described CAR name service agent module example;
Whether step 311, judgement make a mistake in calling described interface method process, if then execution in step 313, otherwise execution in step 312;
Step 312, coding/decoding module instance are encoded to the data that will export, and by SOAP packet module for reading and writing example and HTTP packet module for reading and writing example output SOAP result data bag; Execution in step 315 then;
Step 313, coding/decoding module instance are encoded to the data that will export, and by SOAP packet module for reading and writing example and HTTP packet module for reading and writing example output SOAP misdata bag, execution in step 315 then;
Step 314, described HTTP packet read/write modules example return error message;
Step 315, end.
3, method of providing services on the Internet based on middleware platform according to claim 2 is characterized in that the concrete operations of described step 302 are:
After step 3021, CAR name service agent module example are obtained URL, from character string, filter out the routing information of CAR network service agent;
Step 3022, the two-stage directory name that parses the residue character string save as name Service title and agency's interface name respectively;
Step 3023, in the CAR middleware platform, search whether there is described name service object according to described name Service title and agency's interface name, if then execution in step 303, otherwise execution in step 314.
According to claim 2 or 3 described methods of providing services on the Internet, it is characterized in that in the described step 310 that 4, the concrete operations of the described name service object's who calls its agency corresponding interface method are based on middleware platform:
Step 3101, read the metadata of described interface method, be output parameter storage allocation space;
Step 3102, according to described metadata with input parameter, the output parameter pop down;
Step 3103, the relevant instruction calls interface method of hardware platform that uses assembler language to write;
Step 3104, read the output parameter value in the parameter stack and return.
CNB2006100244406A 2006-03-07 2006-03-07 Method for providing network service based on middleware platform Expired - Fee Related CN100512304C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006100244406A CN100512304C (en) 2006-03-07 2006-03-07 Method for providing network service based on middleware platform
HK06113282.4A HK1092973A1 (en) 2006-03-07 2006-12-04 Method of providing network services based on middle ware platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100244406A CN100512304C (en) 2006-03-07 2006-03-07 Method for providing network service based on middleware platform

Publications (2)

Publication Number Publication Date
CN1819588A true CN1819588A (en) 2006-08-16
CN100512304C CN100512304C (en) 2009-07-08

Family

ID=36919270

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100244406A Expired - Fee Related CN100512304C (en) 2006-03-07 2006-03-07 Method for providing network service based on middleware platform

Country Status (2)

Country Link
CN (1) CN100512304C (en)
HK (1) HK1092973A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100424640C (en) * 2006-09-26 2008-10-08 四川长虹电器股份有限公司 Domestic network intermediate parts development platform and codes conversion method thereof
CN100435095C (en) * 2006-12-01 2008-11-19 上海科泰世纪科技有限公司 A naming service mechanism
CN101158894B (en) * 2006-10-08 2010-05-12 上海科泰世纪科技有限公司 Dynamically automatic adapting programming system and method in modular soft software system
CN101043478B (en) * 2007-04-20 2010-05-26 北京航空航天大学 Service gateway and method for implementing secure message processing
CN101971593A (en) * 2008-02-27 2011-02-09 诺基亚公司 Transport independent architecture
CN101923485B (en) * 2009-06-17 2013-02-06 大唐软件技术股份有限公司 JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN103581310A (en) * 2013-10-24 2014-02-12 深圳市远行科技有限公司 Automatic generating method for web service agent
CN111262904A (en) * 2019-12-19 2020-06-09 北京航天智造科技发展有限公司 Service agent system and method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100424640C (en) * 2006-09-26 2008-10-08 四川长虹电器股份有限公司 Domestic network intermediate parts development platform and codes conversion method thereof
CN101158894B (en) * 2006-10-08 2010-05-12 上海科泰世纪科技有限公司 Dynamically automatic adapting programming system and method in modular soft software system
CN100435095C (en) * 2006-12-01 2008-11-19 上海科泰世纪科技有限公司 A naming service mechanism
CN101043478B (en) * 2007-04-20 2010-05-26 北京航空航天大学 Service gateway and method for implementing secure message processing
CN101971593A (en) * 2008-02-27 2011-02-09 诺基亚公司 Transport independent architecture
US9119180B2 (en) 2008-02-27 2015-08-25 Nokia Corporation Transport independent architecture
CN101923485B (en) * 2009-06-17 2013-02-06 大唐软件技术股份有限公司 JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN103581310A (en) * 2013-10-24 2014-02-12 深圳市远行科技有限公司 Automatic generating method for web service agent
CN103581310B (en) * 2013-10-24 2017-04-05 深圳市远行科技股份有限公司 A kind of automatic generation method of web service agent
CN111262904A (en) * 2019-12-19 2020-06-09 北京航天智造科技发展有限公司 Service agent system and method
CN111262904B (en) * 2019-12-19 2022-05-20 北京航天智造科技发展有限公司 Service agent system and method

Also Published As

Publication number Publication date
CN100512304C (en) 2009-07-08
HK1092973A1 (en) 2007-02-16

Similar Documents

Publication Publication Date Title
CN1224894C (en) System and method for providing dialog management and arbitration in multi-modal environment
CN1819588A (en) Network service providing method based on middleware platform
US8248992B2 (en) Method and apparatus for providing home network device service to an external device through web service
US7620934B2 (en) System and method for a Web service definition
CN1313953C (en) System and method of mapping between software objects and structure languige element-based documents
CN1529849A (en) Method and apparatus for compitation of interpretative language for interactive television
CN101035125A (en) Method and system for processing Web service requests
CN1832476A (en) Dynamic service surrogates
CN1564129A (en) Method of packing member and consistent visit
US20060031850A1 (en) System and method for a Web service virtual interface
CN1757216A (en) Systems and methods for creating and communicating with wireless application-based components
US20070169015A1 (en) Web services development automation toolkit with test case driver and customized configuration file
CN1750470A (en) Data sharing system, method and software tool
CN1751442A (en) System and method for compression of wireless applications expressed in a structured definition language
CN1942860A (en) A system and method for modeling and dynamically deploying services into a distributed networking architecture
CA2641052A1 (en) System and method for extending a component-based application platform with custom services
CN1811702A (en) System and method for developing portal applications and automatically deploying them into a portal server application
CN1661554A (en) Systems and methods for building wireless applications
CN1967485A (en) Method and system for realizing J2EE application
CN1916842A (en) Method of packaging component for implementing reflection mechanism in structurized software system
CN113742105B (en) Method, device and medium for adapting micro-service framework
CN1320874A (en) Program mining method and system in network environment
CN1697454A (en) Method for processing information, information processor
CN1585948A (en) Application view component for system integration
CN1545653A (en) Methods and device for interfacing communication between devices on different networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1092973

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1092973

Country of ref document: HK

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090708

Termination date: 20180307

CF01 Termination of patent right due to non-payment of annual fee