CN101764767A - Network interconnection method, gateway facility and system - Google Patents

Network interconnection method, gateway facility and system Download PDF

Info

Publication number
CN101764767A
CN101764767A CN200810188274.2A CN200810188274A CN101764767A CN 101764767 A CN101764767 A CN 101764767A CN 200810188274 A CN200810188274 A CN 200810188274A CN 101764767 A CN101764767 A CN 101764767A
Authority
CN
China
Prior art keywords
content
user terminal
protocol
conversion
grammer
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.)
Pending
Application number
CN200810188274.2A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200810188274.2A priority Critical patent/CN101764767A/en
Priority to PCT/CN2009/075732 priority patent/WO2010072128A1/en
Publication of CN101764767A publication Critical patent/CN101764767A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention relates to a network interconnection method, which includes the steps of receiving a browsing request message transmitted by a user terminal, obtaining the identification information of the user terminal according to the browsing request message, transmitting the browsing request to a network server, receiving a response message transmitted by the network server, obtaining corresponding message content identification information according to the response message, obtaining a preset conversion rule according to the identification information of the user terminal and the corresponding message content identification information, and returning the converted response message to the user terminal. The embodiment of the invention also relates to one network interconnection facility and system. Separation of providing contents and displaying contents is realized through the method, facility and system as well as the mutual conversion between supporting communication network and internet protocol, thus solving the phenomena of heterogeneous network and network islanding.

Description

The method of the network interconnection, gateway device and system
Technical field
The present invention relates to the communications field, particularly the method for the network interconnection, gateway device and system.
Background technology
WAP (Wireless Application Protocol, WAP (wireless application protocol)) service is applied in the communication network, and it has corresponding mobile phone terminal and WAP server; Web service then is applied in the IT the Internet, and it has corresponding popular IE browser and Web server.Network islands that causes thus and network isomerism directly cause the user can't be convenient and swift the content that provides of use service provider.When the user uses the PC terminal, can't browse WAP page, and the user can't visit the Web website when using mobile phone terminal.Along with the arrival in 3G epoch, the Web website need extend to communication network to information, mobile phone terminal; WAP site more need be promoted and develops by the Internet and Web website, forms systematized information exchange network, finally covers all means that the user uses.
Isomery present situation and network islands at the network entity in WAP and the Web application, prior art has following several solution: first kind is that terminal development various protocols stack is supported various protocols, this method is by realizing the Fat Client mode, support WML (Wireless Markup Language, WAP Markup Language), HTML (Hyper Text Markup Language, HTML) with XHTML agreements such as (eXtensible HyperText Markup Language, extensible HyperText Markup Languages); Second kind is that the application service provider develops a plurality of Web and the visit of WAP server support terminal; The third is to carry out the protocol format conversion.
In realizing process of the present invention, the inventor finds:
Prior art is when isomery present situation that solves network entity and network islands, and is bigger to the conventional network resources modification, to terminal, network bandwidth requirement height; Drop into hugely, the application service provider provides the threshold of service higher, the cost height, and relate to requirements such as network bandwidth upgrading; The protocol format conversion can only realize the unidirectional protocol conversion of part agreement, realizes being limited in scope, and causes the user still can't visit most of website.
Summary of the invention
In view of this, the embodiment of the invention provides method, gateway device and the system of the network interconnection.Described technical scheme is as follows:
On the one hand, the embodiment of the invention provides the method for the network interconnection, comprising:
Receive the browse request message that user terminal sends, obtain the user terminal identifying information, described browse request message is sent to the webserver according to described browse request message;
Receive the response message that the described webserver sends, comprise described user terminal requests browsed content in the described response message, obtain the response message content identification information according to described response message;
Obtain preset conversion rule according to described user terminal identifying information, described response message content identification information;
According to described preset conversion rule described response message is carried out the content conversion;
Response message after the conversion is returned described user terminal.
On the other hand, the embodiment of the invention also provides a kind of method of the network interconnection, comprising:
Receive the upload request message that user terminal sends, comprise information and user terminal information that described user terminal is wanted uploaded content, the purpose webserver in the described upload request message;
Obtain the user terminal identifying information according to described user terminal information;
Webserver information according to described user terminal identifying information and preservation is in advance obtained preset conversion rule;
According to described preset conversion rule the described content of uploading is carried out the content conversion;
The content of uploading after will changing according to the information of the described purpose webserver is sent to the webserver.
On the one hand, the embodiment of the invention also provides a kind of method of the network interconnection, comprising again:
Receive the service propelling request message that the webserver sends, comprise content, user terminal information and described webserver information that the described webserver pushes to user terminal in the described service propelling request message;
Obtain the user terminal identifying information according to described user terminal information;
Obtain preset conversion rule according to described webserver information and described user terminal identifying information;
Carry out the content conversion according to the content that described preset conversion rule pushes to user terminal the described webserver;
Propelling movement content after the conversion is sent to described user terminal.
On the one hand, the embodiment of the invention provides a kind of gateway device, comprising:
Hypertext transfer protocol server service HTTP Server Service module receives the browse request message that user terminal sends, and obtains the user terminal identifying information according to described browse request message;
HTML (Hypertext Markup Language) client service HTTP Client Service module, be used for described browse request message is sent to the webserver, and receive the response message that the described webserver sends, comprise described user terminal requests browsed content in the described response message; Obtain the response message content identification information according to described response message;
Policy service Policy Service module is used for obtaining preset conversion rule according to described user terminal identifying information, described response message content identification information;
Transformation Service Transform Service module, the preset conversion rule that is used for obtaining according to described Policy Service module is carried out the content conversion to described response message;
Described HTTP Server Service module also is used for and will returns described user terminal by the response message after the described Transform Service module converts.
Another aspect, the embodiment of the invention also provide a kind of gateway device, comprising:
Second hypertext transfer protocol server service HTTP Server Service module, be used to receive the upload request message that user terminal sends, comprise information and user terminal information that described user terminal is wanted uploaded content, the purpose webserver in the described upload request message; And obtain the user terminal identifying information according to described user terminal information;
The second policy service Policy Service module is used for obtaining preset conversion rule according to the webserver information of described user terminal identifying information and preservation in advance;
The second Transformation Service Transform Service module is used for according to described preset conversion rule the described content of uploading being carried out the content conversion;
The second HTML (Hypertext Markup Language) client service HTTP Client Service module, the content of uploading after being used for will changing according to the information of the described purpose webserver is sent to the webserver.
On the one hand, the embodiment of the invention also provides a kind of gateway device, comprising again:
The 3rd HTML (Hypertext Markup Language) client service HTTP Client Service module, be used to receive the service propelling request message that the webserver sends, comprise content, user terminal information and described webserver information that the described webserver pushes to user terminal in the described service propelling request message; Obtain the user terminal identifying information according to described user terminal information;
The 3rd policy service Policy Service module is used for obtaining preset conversion rule according to described webserver information and described user terminal identifying information;
The 3rd Transformation Service Transform Service module is used for carrying out the content conversion according to the content that described preset conversion rule pushes to user terminal the described webserver;
The 3rd hypertext transfer protocol server service HTTP Server Service module is used for the propelling movement content after the conversion is sent to described user terminal.
On the one hand, the embodiment of the invention there is provided a system comprising again:
Gateway device is used to receive browse request message or the upload request message that user terminal sends; Obtain the user terminal identifying information according to described browse request message or described user terminal information;
Also be used to receive the response message of webserver transmission or the service propelling request message that the webserver sends; Obtain the response message content identification information or obtain webserver information according to described response message according to described service propelling request message;
Obtain preset conversion rule according to described user terminal identifying information, described response message content identification information or webserver information;
According to described preset conversion rule the business of described response message or the propelling movement of the described webserver or the content web-servers of described user terminal uploads are carried out the content conversion, the correspondence as a result after the conversion is returned the described user terminal or the described webserver;
The webserver is used for to the response message of described gateway device transmission corresponding to described browse request, or receives described user terminal by described gateway device uploaded content, or initiatively sends the service propelling request message to described user terminal.
The embodiment of the invention also provides a kind of method that realizes the syntax conversion of protocol contents in the protocol message body, and described method comprises:
Whether the element/property in the protocol message body that judgement is received in the former grammer of protocol contents is present in the target grammer, whether the implication that is the element/property in element/property and the described target grammer of then judging in the described former grammer is consistent, otherwise judges whether element/property in the former grammer of protocol contents in the described protocol message body exists the grammer of implication of equal value in described target grammer;
When the judged result of the implication of element/property in the described former grammer of described judgement and the element/property in the described target grammer for being, then duplicate element/property in the former grammer of protocol contents in the described protocol message body to described target grammer, otherwise judge whether element/property in the former grammer of protocol contents in the described protocol message body exists the grammer of implication of equal value in described target grammer;
When whether the element/property in the described former grammer of judging protocol contents in the described protocol message body exists the judged result of the grammer of implication of equal value in described target grammer is to be then to use the syntactic representation of implication of equal value in the described target grammer or revise element/property in the former grammer of protocol contents in the described protocol message body, otherwise expresses the implication of the element/property in the former grammer of protocol contents in the described protocol message body by program.
The embodiment of the invention also provides a kind of equipment of realizing the syntax conversion of protocol contents in the protocol message body, and described equipment comprises:
First judge module is used for judging whether the element/property in the former grammer of the protocol message body protocol contents of receiving is present in the target grammer;
Second judge module is used for judging whether the implication of the element/property in element/property and the described target grammer in the former grammer of described protocol message body protocol contents is consistent;
The 3rd judge module is used for judging whether element/property in the former grammer of described protocol message body protocol contents exists the grammer of implication of equal value in described target grammer;
Replication module, be used for when the judged result of described second judge module when being, duplicate element/property in the former grammer of protocol contents in the described protocol message body to described target grammer;
Expression/modified module, be used for when the judged result of described the 3rd judge module when being, use the syntactic representation of implication of equal value in the described target grammer or revise element/property in the former grammer of described protocol message body protocol contents;
Representation module, be used for when the judged result of described the 3rd judge module for not the time, express the implication of the element/property in the former grammer of described protocol message body protocol contents by program.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
The embodiment of the invention is by increase supporting communication network and WML, the HTML of Internet and the gateway device of the mutual conversion between the XHTML agreement, and the conversion between the agreement that the user can provide according to gateway device is provided by the Web/WAP application service that provides in the Internet arbitrarily; The service provider of Web/WAP application service and content supplier can only provide the content of service emphatically, thereby realize content being provided and representing separating of content, solve network isomery and network islands phenomenon, and realized effective fusion of the Internet and communication network.
Description of drawings
Fig. 1 is the method flow diagram of the network interconnection that provides of the embodiment of the invention;
Fig. 2 is the structural representation of the gateway device that provides of the embodiment of the invention;
Fig. 3 is the method flow diagram of the another network interconnection that provides of the embodiment of the invention;
Fig. 4 is the structural representation of the another gateway device that provides of the embodiment of the invention;
Fig. 5 is the method flow diagram of the another network interconnection that provides of the embodiment of the invention;
Fig. 6 is the structural representation of the another gateway device that provides of the embodiment of the invention;
Fig. 7 is the structural representation of the system that provides of the embodiment of the invention;
Fig. 8 is the networking structure schematic diagram that the embodiment of the invention provides;
Fig. 9 is the gateway device structural representation of the network interconnection that provides of the embodiment of the invention;
Figure 10 is the Policy Service modular structure schematic diagram that the embodiment of the invention provides;
Figure 11 is the Transform Service modular structure schematic diagram that the embodiment of the invention provides;
Figure 12 is the another structural representation of the networking that provides of the embodiment of the invention;
Figure 13 is the method flow diagram that user that the embodiment of the invention provides uses the gateway device browse service;
Figure 14 is the transformational relation figure between the agreement that provides of the embodiment of the invention;
Figure 15 is the application process flow chart of the protocol conversion rule that provides of the embodiment of the invention;
Figure 16 is that the WML protocol suite that provides of the embodiment of the invention is to other method for converting protocol flow charts;
Figure 17 is that the HTML protocol suite that provides of the embodiment of the invention is to other method for converting protocol flow charts;
Figure 18 is that the XHTML protocol suite that provides of the embodiment of the invention is to other method for converting protocol flow charts;
Figure 19 is the Grammatical transformation method flow chart that the embodiment of the invention provides.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Referring to Fig. 1, the method flow diagram of the network interconnection that provides for the embodiment of the invention, this method comprises:
S101: receive the browse request message that user terminal sends, obtain the user terminal identifying information, browse request is sent to the webserver according to browse request message;
S102: receive the response message that the webserver sends, comprise the user terminal requests browsed content in the response message, obtain the response message content identification information according to response message;
S103: obtain preset conversion rule according to user terminal identifying information, response message content identification information;
S104: response message is carried out the content conversion according to preset conversion rule;
S105: the response message after will changing returns user terminal.
In the embodiment of the invention, the Web/WAP application service that the user can provide in the Internet arbitrarily according to the conversion access web server between the agreement that provides; The service provider of Web/WAP application service and content supplier can only provide the content of service emphatically, thereby realize content being provided and representing separating of content, solve network isomery and network islands phenomenon, and realized effective fusion of the Internet and communication network.
Referring to Fig. 2, the structural representation of the gateway device that provides for the embodiment of the invention, this equipment comprises:
Hypertext transfer protocol server service (HTTP Server Service, Hyper Text Transfer Protocol ServerService) module 21, receive the browse request message that user terminal sends, obtain the user terminal identifying information according to browse request message;
HTML (Hypertext Markup Language) client service (HTTP Client Service) module 22 is used for browse request message is sent to the webserver, and receives the response message that the webserver sends, and comprises the user terminal requests browsed content in the response message; Obtain the response message content identification information according to response message;
Policy service (Policy Service) module 23 is used for obtaining preset conversion rule according to user terminal identifying information, response message content identification information;
Transformation Service (Transform Service) module 24, the preset conversion rule that is used for obtaining according to Policy Service module 23 is carried out the content conversion to response message;
HTTP Server Service module 21 also is used for and will returns user terminal by the response message after 24 conversions of Transform Service module.
The embodiment of the invention is by increase supporting communication network and WML, the HTML of Internet and the gateway device of the mutual conversion between the XHTML agreement, and the conversion between the agreement that the user can provide according to gateway device is provided by the Web/WAP application service that provides in the Internet arbitrarily; The service provider of Web/WAP application service and content supplier can only provide the content of service emphatically, thereby realize content being provided and representing separating of content, solve network isomery and network islands phenomenon, and realized effective fusion of the Internet and communication network.
Referring to Fig. 3, the method flow diagram of the another network interconnection that provides for the embodiment of the invention, this method comprises:
S301: receive the upload request message that user terminal sends, comprise information and user terminal information that user terminal is wanted uploaded content, the purpose webserver in this upload request message;
Wherein, the information of the purpose webserver can be the information such as address, sign of the webserver.
S302: obtain the user terminal identifying information according to upload request message;
S303: the webserver information according to user terminal identifying information and preservation is in advance obtained preset conversion rule;
S304: carry out the content conversion to uploading content according to preset conversion rule;
S305: the content of uploading after will changing according to the information of the purpose webserver is sent to the webserver.
In the embodiment of the invention, the user can upload content to the Web/WAP application service that the webserver provides in the Internet arbitrarily according to the conversion between the agreement that provides; Thereby realize content being provided and representing separating of content, solved network isomery and network islands phenomenon, and realize effective fusion of the Internet and communication network.
Referring to Fig. 4, the structural representation of the another gateway device that provides for the embodiment of the invention, this equipment comprises:
Second hypertext transfer protocol server service HTTP Server Service module 41, be used to receive the upload request message that user terminal sends, comprise information and user terminal information that user terminal is wanted uploaded content, the purpose webserver in the upload request message; And obtain the user terminal identifying information according to user terminal information;
The second policy service Policy Service module 42 is used for obtaining preset conversion rule according to the webserver information of user terminal identifying information and preservation in advance;
The second Transformation Service Transform Service module 43 is used for carrying out the content conversion according to preset conversion rule to uploading content;
The second HTML (Hypertext Markup Language) client service HTTP Client Service module 44, the content of uploading after being used for will changing according to the information of the purpose webserver is sent to the webserver.
The embodiment of the invention is by increase supporting communication network and WML, the HTML of Internet and the gateway device of the mutual conversion between the XHTML agreement, and the conversion between the agreement that the user can provide according to gateway device is uploaded content to the Web/WAP application service that the webserver provides in the Internet arbitrarily; Thereby realize content being provided and representing separating of content, solved network isomery and network islands phenomenon, and realize effective fusion of the Internet and communication network.
Referring to Fig. 5, the method flow diagram of the another network interconnection that provides for the embodiment of the invention, this method comprises:
S501: receive the service propelling request message that the webserver sends, comprise content, user terminal information and webserver information that the webserver pushes to user terminal in this service propelling request message;
S502: obtain the user terminal identifying information according to user terminal information;
S503: obtain preset conversion rule according to webserver information and user terminal identifying information;
S504: carry out the content conversion according to the content that preset conversion rule pushes to user terminal the webserver;
S505: the propelling movement content after will changing is sent to user terminal.
In the embodiment of the invention, the webserver can initiatively provide the Web/WAP application service to the user according to the conversion between the agreement that provides; The service provider of Web/WAP application service and content supplier can only provide the content of service emphatically, thereby realize content being provided and representing separating of content, solve network isomery and network islands phenomenon, and realized effective fusion of the Internet and communication network.
Referring to Fig. 6, the structural representation of the another gateway device that provides for the embodiment of the invention, this equipment comprises:
The 3rd HTML (Hypertext Markup Language) client service HTTP Client Service module 61, be used to receive the service propelling request message that the webserver sends, comprise content, user terminal information and webserver information that the webserver pushes to user terminal in the service propelling request message; And obtain the user terminal identifying information according to user terminal information;
The 3rd policy service Policy Service module 62 is used for obtaining preset conversion rule according to webserver information and user terminal identifying information;
The 3rd Transformation Service Transform Service module 63 is used for carrying out the content conversion according to the content that preset conversion rule pushes to user terminal the webserver;
The 3rd hypertext transfer protocol server service HTTP Server Service module 64 is used for the propelling movement content after the conversion is sent to user terminal.
The embodiment of the invention is by increase supporting communication network and WML, the HTML of Internet and the gateway device of the mutual conversion between the XHTML agreement, and the conversion between the agreement that the webserver can provide according to gateway device initiatively provides the Web/WAP application service to the user; The service provider of Web/WAP application service and content supplier can only provide the content of service emphatically, thereby realize content being provided and representing separating of content, solve network isomery and network islands phenomenon, and realized effective fusion of the Internet and communication network.
Referring to Fig. 7, the structural representation of the system that provides for the embodiment of the invention, this system comprises:
Gateway device 71 is used to receive browse request message or the upload request message that user terminal sends; Obtain the user terminal identifying information according to browse request message or user terminal information;
Also be used to receive the response message of webserver transmission or the service propelling request message that the webserver sends; Obtain the response message content identification information or obtain webserver information according to response message according to the service propelling request message;
Obtain preset conversion rule according to user terminal identifying information, response message content identification information or webserver information;
According to preset conversion rule the business of response message or webserver propelling movement or the content of user terminal uploads are carried out the content conversion, the correspondence as a result after the conversion is returned the user terminal or the webserver;
The webserver 72 is used for to the response message of gateway device transmission corresponding to browse request, or receives user terminal by the gateway device uploaded content.
The embodiment of the invention is by increase supporting communication network and WML, the HTML of Internet and the gateway device of the mutual conversion between the XHTML agreement, and the conversion between the agreement that the user can provide according to gateway device is provided by the Web/WAP application service that provides in the Internet arbitrarily; The service provider of Web/WAP application service and content supplier can only provide the content of service emphatically, thereby realize content being provided and representing separating of content, solve network isomery and network islands phenomenon, and realized effective fusion of the Internet and communication network.
In the embodiment of the invention, when gateway device is received a plurality of response message that a plurality of browse request message that user terminal sends and the webserver send simultaneously, according to prior art, gateway device can be corresponding with browse request message with a plurality of response messages, send respectively, repeat no more herein.
Referring to Fig. 8, the networking structure schematic diagram that provides for the embodiment of the invention.As shown in Figure 8, comprise in the network: user terminal (UE), administrator terminal, gateway device and WAP, Web Application Server.
User terminal comprises: the employed mobile phone of user capture WAP and Web website, PC, notebook computer and PDA (Personal Digital Assistant, personal digital assistant) etc.; For example: IPhone, Legend computer, the ThinkPad of association, the X50s of Dell palmtop PC etc.;
Administrator terminal is the equipment that operator safeguards gateway device, for example: the PC that has browser;
WebApplication (application) server comprises the website or the application program that are used to the user that content and service are provided, is called as CP (content supplier)/SP (service provider) in communication network.For example: http://www.sina.com.cn;
The WAP application server provides the website or the application program of content and service for the user.WAP is that with the Web main distinction agreement is different, towards different terminals.For example, http: // 3g.sina.com.cn or wsp: // 3g.sina.com.cn;
Gateway device, be used to receive the request of user terminal browsing content or request service, carry out processing such as relevant terminal identification, forwarding strategy, request is forwarded to the WAP/Web application server of appointment, receive the response contents of corresponding WAP/Web application server, and carry out protocol conversion, will finally respond and return to user terminal, after carrying out corresponding user behavior analysis, deposit database in;
In preferred embodiment, the function that gateway device can also provide door to show is used for to the user provides service, and open service management function support merchant administrator terminal carries out service operation.
Based on networking structure schematic diagram shown in Figure 8, the embodiment of the invention provides a kind of gateway device of the network interconnection, as shown in Figure 9, this gateway device comprises: HTTP Server Service (http server service) module, Policy Service (policy service) module, HTTP Client Service (HTTP client service) module, Transform Service (Transformation Service) module.
Pass through API (Application Programming Interface between each module, application programming interface) or based on SOAP (Simple Object Access Protocol, the Simple Object Access Protocol) interface of Web Services set up contact; Wherein, the api interface purpose is to improve performance, and the SOAP interface then can carry out distributed deployment and open interface.Because each functions of modules is different with efficient, Transform Service module and Policy Service module can be disposed a plurality of; Set up annexation between the module by above-mentioned interface, can take into account effectiveness of performance, opening and realize distributed deployment.
Each functions of modules in the gateway device is as follows:
HTTP Server Service module is mainly used in user terminal and carries out alternately; Adopt http protocol to carry out alternately with user terminal, adopt soap protocol/api function to establish a connection with Policy Service module;
Particularly, HTTP Server Service module comprises:
The first request unit is used for the response of the request/webserver of process user, receives user's HTTP browse request, forwards the request to Policy Service module, receives the response from Policy Service module.
Based on security requirement, HTTP Server Service module also supports the user to use HTTPS to conduct interviews.
First information recognition unit, be used for end message is discerned, the header field information of analysing terminal request, and therefrom obtain the terminal type information (User-Agent header field) that is used to change, the related contents such as area covered by agreement information (Accept header field), user profile and the network information that the user selects.
Wherein, relevant soft in detail, the hardware information of this terminal of terminal type information representation; The area covered by agreement that the user selects is represented the ability of browser software and the wish of terminal; Server can pass through user profile (as phone number, user id etc.) and formulate special rules; The network information has comprised information such as the network type and the network bandwidth, thereby makes content after the conversion meet the requirement and the restriction of the bandwidth of diverse network.HTTP Server Service module is transmitted to Policy Service module with these information.
HTTP Client Service module is used for carrying out information interaction with the WAP/Web application server; And undertaken alternately by http protocol between the WAP/Web application server, adopt soap protocol/api function to establish a connection with Policy Service module;
Particularly, HTTP Client Service module comprises:
The second request unit is used to handle service request and response, receives the browse request of Policy Service module, and forwards the request to the WAP/WEB application server, gets access to the response of server, finally returns to Policy Service module.Based on security requirement, HTTP Client Service module also supports the user to use HTTPS to conduct interviews.
Second information identificating unit, be used for the response message content is discerned, analyze the http response message that the WAP/WEB application server returns, obtain final protocol version at first according to the clear and definite message content area covered by agreement of http response header (as the Content-Type header field), and according to the protocol statements in the message body.This unit is finally message content and identification notice Policy Service module.
Policy Service module as the nucleus module of gateway device, connects other each modules in the gateway device, carries out the message distribution, drives other modules and finishes the end-to-end flow process that terminal is browsed the WAP/WEB application; Pass through the communication of HTTP/HTTPS agreement between this module and the administrator terminal, pass through soap protocol/api function communication with HTTP Server Service module, pass through soap protocol/api function communication with HTTP Client Service module, pass through soap protocol/api function communication with Transform Service module.
Policy Service module also is used for open interface and carries out operation maintenance to administrator terminal.
Policy Service module is obtained the respective protocol transformation rule line discipline of going forward side by side by terminal identification information and response message content identification information and is merged.
Transform Service module, the protocol conversion rule that is used for providing according to Policy Service module is obtained corresponding mapping logic grammar file from database, and call XSLT (eXtended Stylesheet Language Transformation, can expand based on the CSS transfer language) or XQuery engine (Xml Query language engine, xml query language engine) carries out the content format conversion, and finally change out the protocol format of support terminal; This module also is one of nucleus module in the gateway device, and this module and Policy Service module are by soap protocol/api function communication.
The gateway device of changing mutually between the realization agreement that the embodiment of the invention provides, adopt Policy Service module that distribution policy is carried out in the response of WAP/Web application server, call Transform Service module and carry out the protocol contents conversion, request with adaptive terminal, can develop application fast and shine upon present protocol suite, and then the isomery of adaptation network entity and network islands, make the user can obtain the service that WAP and Web provide whenever and wherever possible, reduce the cost that content and service provider provide service.
Referring to Figure 10, the embodiment of the invention provides a kind of Policy Service (policy service) module, and this module comprises: distribution policy processing unit and switching strategy processing unit.
The distribution policy processing unit, be used for when receiving the request that HTTP Server Service module sends, carry out distribution policy and handle, judgement is that other WAP/Web use in displaying of request door or the request network, if the request door is showed, then directly provide webpage to show to the user; If other WAP/Web use in the request network, then request message is forwarded to the application corresponding website;
This unit also is used for after the response of receiving HTTP Client Service module, uses distribution policy and determines that this response is directly to the response of HTTP Server Service module forwards or call the switching strategy processing unit and carry out protocol conversion;
Wherein, above-mentioned distribution policy can comprise client-requested URL, the comparison of response message and request message and coupling etc.
The switching strategy processing unit is used for the adaptive of processing terminal request ability and WAP/Web application content agreement;
Particularly, this unit comprises the mutual switching strategy of WML protocol suite, HTML protocol suite and XHTML protocol suite; The information that provides according to the response message content recognition function of the terminal recognition function of HTTP Server Service module and HTTP Client Service module, vlan query protocol VLAN transformation rule from database, and call Transform Service module and carry out the protocol contents conversion, with the adaptive terminal ability.
In preferred embodiment, Policy Service module also comprises:
The door display unit is used for the user behavior statistics, and TOP10 WAP/Web uses recommendation, for example recommends higher webpage of user capture rate or website, websites collection commonly used, characteristics such as information announcement and user profile maintenance.Wherein, user profile is safeguarded and has been comprised user's registration, lands characteristics such as personal settings and phone number binding; The phone number binding mainly is because most of WAP site all needs the phone number authentication;
The service operation unit is used for the keeper of operator (being aforementioned administrator terminal) whole gateway device is runed operation, and this unit has comprised information announcement, user management, and accounting management (optional), and business recommended etc.And forwarding, transformation rule influence forwarding and conversion operations can be set.
Referring to Figure 11, the embodiment of the invention provides a kind of Transform Service module, and this module comprises: protocol format authentication unit, message content are repaired unit and conversion unit of protocol.
The protocol format authentication unit, be used to realize that the message content to Policy Service module forwards carries out format verification, Name Space (NameSpace) from message content obtains DTD (Document Type Definition, DTD) document name, according to the document name, from database, take out corresponding D TD Format Type defined file.If the checking form is illegal, then message call content reparation unit carries out the reparation of message content, carries out translation function otherwise directly enter conversion unit of protocol;
Message content is repaired the unit, be used for after the protocol format authentication unit checks that the outbound message content format is illegal, carry out the form reparation of message content according to the non-conformance description of format verification, to guarantee meeting the definition of DTD Format Type before message content enters conversion unit of protocol;
Conversion unit of protocol is used to produce the message content that meets ability of user terminal;
Because WML, HTML and XHTML protocol suite are more, nearly more than tens of the element of a kind of agreement the inside definition and attributes, and this three big protocol suite is certainly in development and evolution constantly, cause the agreement syntax conversion to exist demand constant, mapping content is many, problems such as development efficiency is low, therefore, this unit is given up and is utilized C++ or java to XML, WML, DOM such as XHTML (Document Object Model, DOM Document Object Model) method of operation, introducing is based on the XSLT technology of SOA (Service-OrientedArchitecture, service-oriented architecture).XSLT can be understood as the XML programming, can use this technology that mapping logic is saved as XML document, can on-the-fly modify.The function that conversion unit of protocol realizes also is the final goal of gateway device.
Referring to Figure 12, be another schematic diagram of networking structure.This figure provides preferred embodiment based on Fig. 8, comprises in the network: user terminal, administrator terminal, gateway device and WAP, Web Application Server;
Wherein, gateway device comprises: HTTP Server Service module, Policy Service module, HTTP Client Service module, Transform Service module;
Further, HTTP Server Service module comprises: the first request unit, first information recognition unit; HTTP Client Service module comprises: the second request unit, second information identificating unit; Policy Service module comprises: distribution policy processing unit and switching strategy processing unit; In preferred embodiment, can also comprise door display unit and service operation unit; Transform Service module comprises protocol format authentication unit, message content reparation unit and conversion unit of protocol.
Wherein, between each module, the annexation between the unit of inside modules as shown in figure 12.
Referring to Figure 13, the method flow diagram of the network interconnection that provides for the embodiment of the invention, the user uses gateway device to carry out business and browses, and this method comprises:
601: the HTTP Server Service module of user terminal in gateway device sends the request of browsing the Web/WAP application server.
Wherein, the HTTP Server Service module of user terminal in gateway device sent request, and request is browsed and is arranged in the Web/WAP application server that the Internet or mobile Internet provide content and service.When thinking that there is personal sensitive information in interaction content, user or website can use the HTTPS agreement that the transmission content is encapsulated.
602:HTTP Server Service module is obtained terminal identification information after receiving user's request.
Wherein, HTTP Server Service module is discerned end message, and therefrom obtains the terminal type information (User-Agent header field) that is used to change, the related contents such as area covered by agreement information (Accept header field), user profile and the network information that the user selects.These information are as the main foundation of follow-up Policy Service module application switching strategy.
603:HTTP Server Service module is transmitted to the PolicyService module by api function or soap protocol with user's request, and carries the corresponding terminal identifying information.
Wherein, select api function or soap protocol according to the requirement in the specific implementation process, the api function purpose is to improve performance, and soap protocol then can carry out distributed deployment and open interface.
After 604:Policy Service module is received request from HTTP Server Service module, carry out distribution policy and handle.
Wherein, door is showed if solicited message is request, promptly asks the portal website of this gateway equipment, then directly returns the corresponding information of the portal website of this gateway equipment to terminal, otherwise carries out 605.
605: after Policy Service module confirms that request is for the portal website of non-gateway equipment, Policy Service module will ask to be forwarded to HTTP Client Service module accordingly.
Comprising, forward the request to HTTP Client Service module, and preserve this request relevant terminal identifying information.
The above-mentioned Web/WAP website of asking of 606:HTTP Client Service module forwards to appointment.
Wherein, the Web/WAP website of appointment is that request URL (Uniform Resource Locator, URL(uniform resource locator)) address is specified.
The 607:Web/WAP server is back to HTTP Client Service module with the HTTP/HTTPS response message corresponding with request.
608:HTTP Client Service module is carried out the response message content recognition to response message.
Wherein, the content aware step of response message comprises: the content of Content-Type in the response header field of analysis HTTP/HTTPS, thereby the protocol suite under the clear and definite message; And System-ID and Public-ID in the message content, therefrom obtain the content encoding (as UTF-8, GB2312 etc.) of message and the agreement of content, so clear and definite message content coding, the information such as concrete agreement that message is used.
The HTTP/HTTPS response message that this Web/WAP server of 609:HTTP Client Service module forwards returns is to Policy Service module, and carries the response message content identification information.
610:Policy Service module is carried out distribution policy to response message and is handled.
Wherein, Policy Service module according to before the response message content identification information returned of the terminal identification information preserved and HTTP Client Service module judge, if terminal supports the agreement of request message content then gateway device carries out 617; Otherwise carry out 611.
The 611:Policy Service module switching strategy that carries on an agreement.
Wherein, Policy Service module is according to corresponding transformation rule in terminal identification information, the response message content recognition search database.This transformation rule is that gateway device sets in advance common default (rule that does not promptly have condition), and supports the conditional plan of particular terminal, particular network, particular server, and supports rule to merge.The influencing factor of Rulemaking comprises the agreement that the maximum capacity, the network bandwidth, server of terminal are supported, coordinates each factor and reaches the preferable experience of user.
612:Policy Service module is transmitted to Transform Service module with response message, and carries transformation rule in this response message according to the transformation rule that inquires.
613:Transform Service module is carried out the protocol format checking of response message content.
Wherein, the protocol format checking to the response message content comprises whether checking message content form is good, whether meets DTD and describes.If format verification by carry out 615; Otherwise carry out the format content reparation according to the format verification error reporting, promptly execution in step 614;
Particularly, the response message content is carried out format verification to be comprised: the Name Space (NameSpace) from message content obtains DTD (Document Type Definition, DTD) document name, according to the document name, take out corresponding D TD Format Type defined file from database, whether the authentication response information format of content meets DTD is described.
614:Transform Service module is carried out the message content reparation.
The target of carrying out the message content reparation is to produce to meet the message content that DTD describes, and message content can't be handled when avoiding format conversion.
615:Transform Service module is carried out the conversion of protocol format content.
Wherein, carrying out format content conversion mainly is to be divided into two stages: the transformation rule that provides according to Policy Service module is at first confirmed the agreement from which protocol conversion to appointment, takes out corresponding grammer mapped file then from database; The content of the content of changing fully according to the needs of stipulating in the transformation rule, not exclusively conversion and the content (this content only keeps corresponding literal) do not changed are fully determined the original and the grammer mapped file of needs filtration again, do not handle if the content of the conversion of not requiring is clearly arranged in the foregoing then abandon or keep, at last produce message content after the final conversion according to the grammer mapped file.
In the above-mentioned original of need filtering, the condition of filtration is diversified, and for example can filter in some webpages can not content displayed or filter the content that can't resolve.Because the condition of filtering is diversified, so transformation rule also is variable.
616:Transform Service module will be forwarded to Policy Service module through the message content of conversion.
617:Policy Service module forwards response message is to HTTP Server Service module.
Wherein, with 610 corresponding, Policy Service module directly transmitted response to HTTP Server Service module or notice HTTP Server Service module is carried out HTTP redirection, the content that this HTTP redirection represents finally will to issue the response message of terminal is a redirect response, terminal is obtained the URL that service finally is provided for the user according to redirect response, asks corresponding resource according to this URL again;
Wherein, Policy Service module judges whether the response message content of terminal identification information and the network information, server mates (comprising information such as the network type and the network bandwidth), if coupling, expression needn't be carried out the conversion of protocol format, and then carries out HTTP redirection.
With 616 corresponding, Policy Service module also can be transmitted message content through Transform Service module converts to HTTP Server Service module.
618: terminal equipment receives the HTTP/HTTPS response message, and finally gives the terminal use by browser-presented.
Above-mentioned user use the gateway device browse service method 611 in, the protocol conversion strategy comprises two key contents: the mutual transformational relation of agreement, the conversion granularity.
Below by the transformational relation between Figure 14 description protocol:
As shown in figure 14, this transformational relation comprises that scope is the mutual conversion between WML protocol suite, HTML protocol suite and the XHTML protocol suite.Wherein the WML protocol suite comprises WML 1.X series (being WML 1.1, WML 1.2 and WML 1.3), agreements such as WML 2.0; The HTML protocol suite comprises agreements such as CHTML (Compact HTML), HTML 2.0, HTML 3.0 and HTML 4.0; XHTML has then comprised agreements such as XHTML 1.0, XHTML 1.1 and XHTML 2.0.
The switch target of transformational relation shown in Figure 14 is between the above three big protocol suites and the mutual conversion between protocol suite inside.Conversion refers to two kinds of conversions between agreement mutually.Have six kinds of conversions between WML, HTML and the XHTML.Wherein the dotted line between WML and the HTML is represented directly not change between WML and the HTML, and the conversion between them is changed as medium by means of XHTML, and promptly WML will convert HTML to, and at first WML changes XHTML earlier, is mapped to HTML then, and vice versa.XHTML is the core and the final goal of this method conversion, to keep promoting with present W3C (WorldWide Web Consortium World Wide Web Consortium) congruence of XHTML development.In addition, if XHTML convert to HTML be the former of dotted line because most of browser supports that HTML also can support XHTML, and XHTML 1.0 be the good HTML of form, do not need to change.The protocol suite internal conversion is an example with certain agreement among Figure 14, the mutual conversion of inner other agreement of realization and protocol suite, thereby the mutual conversion of institute's protocols having in the realization protocol suite.
Because the conditions such as agreement that terminal capability, the network bandwidth, server are supported at present are even carry out the demand that protocol conversion completely also can't be satisfied the terminal use.For example file such as flash, zip bag is subject to the network bandwidth, hardware conditions such as mobile phone EMS memory, computing capability.Therefore some content in the response message content can abandon or ignore operations such as modification.And abandon, ignore, the content of operation such as modification need consider granularity problem.About grain size analysis, can be included as module, two kinds of granularities of element.Module is to adopt the thinking of XHTML Modularization (modularization), the response message content can be divided into module (module), definition according to XHTML can probably be divided into 28 modules to message content, as text, and modules such as form, script, image module.Simultaneously can support the more operation of small grain size, for example element in the message content or attribute be operated.
The embodiment of the invention requires the design agreement transformation rule according to above-mentioned transformational relation, protocol conversion scope and conversion granularity.This transformation rule has defined regular collection, and terminal use or terminal phone model can corresponding one or more regular collections.A regular collection can comprise zero or a plurality of rule.Wherein rule has comprised condition, operation and converted contents three parts, wherein the converted contents module and the element that have comprised the translation-protocol type and abandoned and ignore.
User profile (PhoneNumbers), end message (UserEquiment), the network information (NetWork) and response contents message (MessageContent) have been comprised in the condition.User profile has comprised phone number, and identify labels such as user id can be provided with zero or a plurality of user in the condition.End message comprises terminal models, and the information such as area covered by agreement that terminal is supported can be provided with zero or a plurality of end message equally.The network information has then comprised the network bandwidth (network uplink and downstream rate) and network type (Internet, 2.5G (GSM/GPRS), 3G network (CDMA, WCDMA, TD-SCDMA) etc.).The response message content has comprised the protocol suite and the concrete agreement of use under the message.The input of these conditions source terminal request, server response and server carry out data and expand the information that obtains (for example obtain the more detailed more detailed software and hardware information of this terminal according to terminal models from network, and the phone number sign in user's registration or the user's request).
Operation has comprised two selections, promptly whether allows conversion.Allowing is exactly allow, and not allowing is exactly block.
Converted contents has comprised the input (OriginTransform) and output (TargetTransform) form of converted contents, and needs content (DiscardContent) that abandons and the content of ignoring (IgnoreContent) in transfer process.Wherein abandon content (DiscardContent) and ignore the content that content (IgnoreContent) has comprised element and module.Whether element has comprised contents such as script (script), picture, and has comprised corresponding prefix (prefix) and suffix (suffix) condition judgment, promptly abandon or ignore operation to judge whether operation according to the prefix and the suffix of the content in the message.Module contents has comprised nucleus module (coreModule), text module (TextModule) etc.
Referring to Figure 15, the application process flow chart of the protocol conversion rule that provides for the embodiment of the invention comprises the application to above-mentioned transformation rule set in this method.Because in concrete implementation process, for multiple end message, user's different demands and special website, a transformation rule in the XML transformation rule file is difficult to satisfy the requirement of conversion, in order to reach the optimum efficiency of changing between agreement, need the rational Application transformation rule, promptly select the optimum translation rule, therefore method shown in Figure 15 provides the application to above-mentioned transformation rule set, specifically comprises:
801:Policy Service module is obtained XML transformation rule file from database, and reads a rule under rule (rule) root element.
Wherein, Policy Service module is obtained XML transformation rule file according to terminal request message content and server response message content from database.
802:Policy Service module is obtained the daughter element condition (condition) under the rule element, judge subscriber phone number in the terminal identification information, terminal equipment, the network bandwidth, whether meet the requirement of transformation rule condition with the response message type in the server response message content, be then to carry out 804, otherwise carry out 803.
803: abandon this transformation rule, carry out 807 afterwards.
804: judge whether transformation rule allows to use, and is then to carry out 806, otherwise carries out 805.
805: keep not allow the transformation rule used, carry out 807.
806: keep the transformation rule that allows application, and carry out the merging of transformation rule.
Particularly, allow the transformation rule of conversion directly to keep for the article one that runs in the implementation; And allow the transformation rule of conversion for the non-article one that runs into, the content of its content and transformation rule is before merged, the principle that merges is as the criterion with the optimum efficiency of Target Transformation agreement, for example, Target Transform (being target protocol) gets more senior abundant agreement of content or the higher agreement of version.The content that abandons and ignore is then minimum with the content that abandons to be principle.
807: judge whether also to exist next bar rule, if then carry out 801, otherwise execution in step 808.
808: read rule and finish, carry out 809 afterwards.
809: the operation according to 805 and 806 produces final transformation rule content.
Wherein, if whole flow process does not carry out 806, then be as the criterion and do not carry out any conversion with 805 result; If the condition without any rule matches this conversion, promptly the terminal identification information in 802, the response message content of server all do not meet the requirement of rule condition, then keep relevant information to database and to notify administrator terminal to carry out rule newly-increased or revise; Otherwise be as the criterion with 806 converted contents that produce, determine the initiation protocol (OriginTransform) and Target Transformation agreement (TargetTransform) changed; Simultaneously, in the process of conversion, the content that is finally abandoned according to 806 results that produce; The content of finally being ignored according to 806 results that produce.
The purpose that rule merges is provided in the application process of the protocol conversion rule that provides for Fig. 8 to be: since the diversity of rule condition and the content that needs to transform and uncertainty (may continue later on increases, also be extensibility), cause being difficult to annotating terminal, certain server of a certain type, certain user's conversion with a transformation rule.
Select only transformation rule concrete reason to have:
(1) the rule merging emphasizes to reuse (or being called reconstruct) notion, rather than exclusiveness.Much conditions and converted contents are interrelated and interact, and can not just all increase or give up original content newly because of the modification of certain condition and certain converted contents.For example: meta-rule 2G mobile phone access WAP site uses the wap1.x agreement, but uses wap2.0 when certain user wishes to visit the sina website.If service regeulations merge and can reuse, and original rule do not waste yet, and can superpose, and need not any variation for other user.
(2) target of rule merging is the most full rule application, rather than optimal rules is used.If optimal rules will inevitably cause Else Rule to use so.
Use description in the gateway device browse service method flow according to user shown in Figure 13, after Policy Service module was carried out switching strategy, Transform Service module was carried out 613 in the browse service flow process, carries out the corresponding protocol conversion process.
In order to realize the conversion between WML protocol suite, HTML protocol suite and the XHTML protocol suite, conversion process has comprised the conversion to other agreement by HTML, WML and XHTML.
The embodiment of the invention illustrates transfer process between WML protocol suite, HTML protocol suite and the XHTML protocol suite by Figure 16~Figure 18.
Referring to Figure 16, for the WML protocol suite to other method for converting protocol flow charts, this method is that a certain agreement comprises to the step of other protocol conversion in the Transform Service resume module WML protocol suite:
901:Transform Service module receives WML body (message body) content in the http response message, carries the messaging protocol version in the message body.
902:Transform Service module is obtained corresponding DTD formatted file according to the messaging protocol version among the WML body from database, and according to this dtd file checking WML body, judges whether the content format of WML body is legal.If the checking result is legal, then carry out 904; Otherwise will carry out 903.
Particularly, Transform Service module is according to the messaging protocol version among the WML body, NameSpace from message content (NameSpace) obtains the DTD document name, according to the document name, from database, take out corresponding D TD Format Type defined file, according to this dtd file checking WML body.
903: the checking result according to DTD carries out the reparation of message content form, carries out 904 afterwards.
WML body after the reparation meets the requirement of DTD formatted file.For example, the title element does not have content among the WML, and it is Untitle that content then can be set.
904: according to content through the daughter element DiscardContent in the transformation rule of Policy Service resume module, judge whether transformation rule needs to abandon the appropriate section message content, carry out content if desired and abandon and then carry out 905, otherwise carry out 906.
Wherein, the content of daughter element DiscardContent is based on needs the content (DiscardContent) that abandons in the transformation rule through Policy Service resume module in the application process of the transformation rule set that Figure 15 provides.
905: the content at Discard Content is changed operation, carries out 906 afterwards.
Wherein, the content of Discard Content being changed operation comprises operations such as WML body delete, changes.Can use C++ or java to operate simultaneously for the operation of element or attribute, simultaneously, preferably can use the XSLT technology to operate.For example, need the template element is abandoned in this conversion of WML body, the XSLT grammer can be expressed as:<xsl:if test=" //template "</xsl:if 〉.
906: the content according to through the daughter element IgnoreContent in the transformation rule of Policy Service resume module judges whether to ignore the content in the Transformational Grammar.Ignore some syntax conversion if desired and then carry out 907, otherwise carry out 908.
Wherein, the content of daughter element IgnoreContent is based on needs the content (IgnoreContent) ignored in the transformation rule through Policy Service resume module in the application process of the transformation rule set that Figure 15 provides.
907: according to the filter of the content generative transformational grammar of IgnoreContent.
Wherein, the effect of mapping filter is that XSLT grammer mapped file is filtered operations such as comprising deletion, modification, promptly deletes the grammer mapping part of coherent element or attribute.This operation can use traditional C++ or java to make amendment, but the preferred XSLT technology of using.For example: do not need the option element is carried out the grammer mapping in this conversion of WML body, the grammer that the XSLT grammer is made amendment to the grammer mapped file is:<xsl:iftest=" //template/@match=' option ' "</xsl:if 〉.
908:, judge that whether the switch target agreement is the HTML protocol suite, if then carry out 909, otherwise carries out 910 according to content through the daughter element TargetTransform in the transformation rule of Policy Service resume module.
909: from database, take out the xsl file of WML, and this XSL Transformational Grammar file applications filter is filtered, carry out 912 afterwards to the syntax conversion of XHTML 1.0.
Wherein, judged result WML according to 908 will be transformed into HTML, can at first from database, take out XSL (the eXtensible Stylesheet Language that corresponding WML is mapped to the syntax conversion of HTML protocol suite, XSL) file, because the popular browser in the Internet is generally supported Transitional (transition) pattern among the XHTML 1.0 at present, if therefore WML will be transformed into HTML, then can directly take out the xsl file of WML to the Transitional of XHTML 1.0, and this xsl file is used filter carry out the filtration of syntax conversion file, carry out 912 afterwards.
910: whether the content of judging Target Transform is the XHTML protocol suite, if then carry out 911, otherwise carries out 913.
911: from database, take out the syntax conversion xsl file that corresponding WML is mapped to the XHTML protocol suite, and this XSL Transformational Grammar file applications filter is filtered.
912: change by the XSLT technology according to the grammer difference between WML and the XHTML protocol suite, finish afterwards.
Wherein, the grammer of WML can be represented by grammer and the javascript of XHTML self.By XHTML syntactic representation WML, for example: wml card ontimer attribute representation The ontimer event occurs when a timer expires, can use the daughter element refresh of head/meta element among the xhtml to realize.
Concrete grammer implementation method sees the explanation of the embodiment of the invention to the grammer mapping process for details.
913: judge that whether WML converts other agreement in the WML protocol suite to, is then to carry out 914, otherwise carries out 916.
Wherein, the conversion between the WML protocol suite internal agreement for example converts WML 1.1 to from WML 2.0, perhaps converts WML 1.3 to from WML1.1.
914: from database, take out the syntax conversion xsl file that corresponding WML is mapped to the WML protocol suite, and this XSL Transformational Grammar file applications filter is filtered, carry out 915 afterwards.
915: the grammer difference according to WML and other agreement of WML protocol suite is changed by the XSLT technology.
For example, WML 1.3 exists element head, meta, select, differences such as template with WML 2.0.Wherein, template does not exist in WML 2.0.And daughter element that other element comprises and attribute are had nothing in common with each other, and therefore need carry out the grammer mapping.
916: EOC.
Referring to Figure 17, for the HTML protocol suite to other method for converting protocol flow charts, this method is that a certain agreement comprises to the step of other protocol conversion in the Transform Service resume module HTML protocol suite:
1001:Transform Service module receives HTMLbody (message body) content.
1002: HTML is carried out the content format reparation.
Wherein, HTML is carried out the content format reparation, make this content format directly become Transitional pattern among the XHTML 1.0, can adopt preferred conversion regime (XSLT) to change in the subsequent transition procedure thereby make.It is correctly nested that W3C normal structure XHTML 1.0 standards (http://www.w3.org/TR/xhtml1/) have pointed out that mainly XHTML requires, element and attribute need small letter, element must have end mark, property value is wanted double quotation marks, can not minimize by attribute, handle in the space of property value, and spcial character is handled, and replaces name attribute etc. with the id attribute.For example,<p〉here is an emphasized<em〉paragraph.</p〉</em〉in XHTML, belong to illegal, correct content is:<p〉here is an emphasized<em〉paragraph</em 〉.</p 〉.By the content reparation, the HTML content will become the form of XHTML 1.0.
1003:, judge whether to abandon the partial content in the message according to through the DiscardContent content in the transformation rule of Policy Service resume module.Then carry out 1004 if desired.Otherwise carry out 1005.
1004: the content to DiscardContent abandons operation, carries out 1005 afterwards.
Wherein, to the content of DiscardContent change operation comprise to XHTML body delete, operation such as modification.For example, in this conversion, do not need the content of javascript, can use the XSLT grammer to delete, that is:<xsl:iftest=" //script "</xsl:if 〉.
1005: the content according to through the daughter element IgnoreContent in the transformation rule of Policy Service resume module, judge whether to ignore the content in the Transformational Grammar, be then to carry out 1006, otherwise carry out 1007.
1006: according to the filter of the content generative transformational grammar of IgnoreContent.
For example, do not need to use the style element in this conversion, then can use grammer:<xsl:iftest=" //style "</xsl:if 〉.
1007: according to content, judge whether the object content of this conversion is the WML protocol suite, be to carry out 1008, otherwise carry out 1010 through the TargetTransform in the transformation rule of Policy Service resume module.
1008: from database, take out the xsl file that XHTML is mapped to WML, and this XSL Transformational Grammar file applications filter is filtered.
1009: by XSLT syntax parsing protocol conversion xsl file, the XHTML content is changed, produced corresponding WML message.
For example: the message content of XHTML 1.0 protocol formats converts in the message process of WML 1.3, and the body element of XHTML 1.0 refers to the content of message body, among the WML 1.3 then with card element representation message body.Therefore xsl file is described as:<xsl:template match=" body "〉<card〉...</card〉</xsl:template 〉.
1010: whether the content of judge changeing the Target Transform in the rule is other agreement in the HTML protocol suite, is then to represent and need change in HTML protocol suite inside, promptly carries out 1012, otherwise carries out 1011.
1011: whether the content of the TargetTransform in the judgment rule is the XHTML protocol suite, is then to carry out 1012, otherwise carries out 1014.
1012: from database, obtain the xsl file of HTML, and this XSL Transformational Grammar file applications filter is filtered to the Transitional of XHTML 1.0.
Because browser is all supported XHTML 1.0 at present, the mapping unification that therefore converts HTML protocol suite grammer to converts XHTML 1.0 to, is understandable that, according to the actual needs, can carry out accurately protocol conversion.
1013: use XSLT analysis protocol conversion xsl file, finally produce corresponding XHTML file.
1014: finish conversion.
Referring to Figure 18, for the XHTML protocol suite to other method for converting protocol flow charts, this method is that a certain agreement comprises to the step of other protocol conversion in the Transform Service resume module XHTML protocol suite:
1101:Transform Service module receives XHTML body (message body) content.
1102: obtain corresponding dtd file according to the protocol type of XHTML body statement and verify whether form is good to judge XHTML message, be execution 1104, otherwise carry out 1103.
1103: message content is repaired according to DTD checking report.
Message content is repaired, made the XHTML message content meet DTD protocol definition form.
1104: according to judging through the element DiscardContent content in the transformation rule of Policy Service resume module that in this conversion needs whether abandon part of module and the element in the message, are then to carry out 1105, otherwise carry out 1106.
1105: XHTML message is revised according to the DiscardContent content.
For example, do not need the link element in this conversion.Can use the XSL grammer to delete.Grammer is:<xsl:templatematch=" link "〉</xsl:template 〉.
1106: the conversion according to judging through IgnoreContent content in the transformation rule of Policy Service resume module in this conversion whether needs are ignored some element in the message is then to carry out 1107, otherwise carries out 1108.
1107: according to the filter of the content generative transformational grammar of IgnoreContent.
This Transformational Grammar filter can be an xsl file, for example, needs to ignore picture in this conversion, and corresponding grammer is:<xsl:template match=" img "〉</xsl:template 〉.
1108: according to judging through the content of TargetTransform in the transformation rule of Policy Service resume module whether the target protocol of this conversion is the WML protocol suite, is then to carry out 1109, otherwise carries out 1111.
1109: from database, take out the protocol conversion xsl file of XHTML, and this XSL Transformational Grammar file applications filter is filtered to the mapping of WML protocol suite.
1110: by XSLT engine analysis protocol conversion xsl file, the XHTML content is carried out syntax conversion, produce corresponding WML message.
For example, convert in the message process of WML 1.3 at the message content of XHTML 1.1 protocol formats, the form element of XHTML 1.1 refers to terminal to server and submits content to, then acts on like the same representation class of go element among the WML 1.3.Therefore xsl file is described as:<xsl:template match=" form "〉<go〉...</go〉</xsl:template 〉.
1111: whether the target protocol of judging this conversion according to the content of TargetTransform is the HTML protocol suite, is then to carry out 1113, otherwise carries out 1112.
1112: judge that whether this switch target agreement is the conversion of XHTML protocol suite inside, is then to carry out 1113, otherwise carries out 1115.
Wherein, the conversion of XHTML protocol suite inside for example is converted to XHTML 1.1 or XHTML 2.0 from XHTML 1.0.
1113: from database, obtain the xsl file of HTML, and this XSL Transformational Grammar file applications filter is filtered to the Transitional of XHTML 1.0.
Because browser is all supported XHTML 1.0 at present, the mapping unification that therefore converts HTML protocol suite grammer to converts XHTML 1.0 to, is understandable that, according to actual conditions, can carry out accurately protocol conversion.
1114: use XSLT engine analysis protocol conversion xsl file, produce corresponding XHTML file.
1115: no corresponding protocol conversion coupling in the transformation rule, notify the keeper can't handle EP (end of program).
In the transfer process between three above-mentioned big protocol suites, the grammer mapping is a committed step.And the key that realizes the grammer mapping is by the identical semanteme of different grammatical representations, thereby realizes representing same or analogous content and function.The process of grammer mapping is similar to the principle of programming language, and for example, same function can realize by C++, also can realize by java.And the means that the grammer mapping realizes are to resolve source contents and be modified as object content by program.The embodiment of the invention adopts XSLT to substitute C++ and the java grammer carries out source contents is carried out analytic modification, forms syntax conversion and uses.
In the conversion implementation procedure of WML, HTML and XHTML, repeatedly mention the mapping of protocol conversion xsl file and XSL grammer in the processing procedure.No matter adopt which kind of grammer, in the process of conversion, the logic rules of its conversion are constant, are the avatar difference of different grammers.Becoming the logic rules of another agreement mapping below from grammer specific implementation angle explanation a certain protocol conversion from three big protocol suites, is that target XHTML 1.0 is an example with source contents WML 1.3 protocol conversions:
Describe according to the DTD of WML 1.3 and to know and have 36 elements among the WML 1.3 that each element all has corresponding a plurality of attribute.WML grammer and XHTML grammer compare, and wherein element/property comprises four kinds of situations: the element/property of former grammer is present in the target grammer, and the implication unanimity; Though the element/property of former grammer is present in the target grammer, but implication is variant, meta for example, select, optgroup, input, img, a, br, head, option, fieldset, table, tr, td, em, strong, b, i, u, big, small, p, 23 of pre etc.; Former grammer element/property is not present in the target grammer, expresses but can carry out equivalent logic by the target grammer; Former grammer element/property neither is present in the target grammer, can not carry out equivalent logic by the target grammer again and express.Therefore can adopt diverse ways conversion at this four dvielement:
Referring to Figure 19, Grammatical transformation method flow chart between the agreement that provides for the embodiment of the invention comprises:
At first receive the content of protocol message body; Afterwards, carry out 1201:
1201: from protocol contents, take out an element/property, judge whether the element/property of former grammer exists in the target grammer, be then to carry out 1202, otherwise carry out 1204.
1202: judge that the implication of this element/property in former grammer be whether consistent with implication in the target grammer, is that then program carries out 1203, otherwise carries out 1204.
1203: duplicate this element/property in the target grammer.
Wherein, this element/property that the judged result according to 1201,1202 draws former grammer is present in the target grammer, and the implication unanimity, then duplicates this element/property in the target grammer.
1204: judge that whether this element/property in the former grammer has the grammer of implication of equal value in the target grammer, be then to carry out 1205, otherwise carry out 1206.
1205: in the target grammer, use the grammer of implication of equal value to represent or revise to this element/property in the former grammer.
Wherein, judge that according to 1204 drawing this element/property of former grammer can not copy in the target grammer fully, therefore, need in the target grammer, use the grammer of implication of equal value to represent or revise, comprise two kinds of situations: express or revise attribute this element/property in the former grammer; Express or revise element and attribute.
(1) express or the modification attribute.
For example, WML meta element comprises http-equiv altogether, name, and forua, content, scheme, id, attributes such as class, forua wherein, it is peculiar that class belongs to WML.Can analyze the semanteme of forua and class, according to the description of OMA (OpenMobile Alliance, Open Mobile Alliance) standard, the class attribute is negligible; The forua attribute represents then whether meta will delete.This conversion logic can pass through grammers such as C++, java, XSLT to be realized, wherein, adopts the Transformational Grammar of XSL to realize that above-mentioned logic is:
<xsl:template?match=″meta″>
<xsl:when?test=″boolean(@forua)and?@forua=′false′″/>
<xsl:otherwise>
<meta>
<xsl:copy-of?select=″@http-equiv|@name|@content|@scheme|@id″/>
<xsl:if?test=″boolean(starts-with(@content,′text/html′))″/>
</meta>
</xsl:otherwise>
</xsl:template>
(2) express or revise element and attribute.
For example, use the XHTML dynamic web page to realize that WML changes to XHTML, can use XHTML self grammer or plug-in unit grammer (as javascript, ActiveX, flash, wmlscript, java applet etc.) to realize its conversion.Self grammer is for example realized, WML card ontimer attribute representation event when timer expires can be used daughter element refresh realization in the head/meta element among the XHTML.
Again for example, some grammer relates to the forward-reverse of browser among the WML, for example onenterforward and onenterbackward.Onenterforward represents the redirect of advancing, and onenterbackward then is that expression retreats redirect.What this WML described is control browser forward-reverse function, the user from other page jump during to this page browser can advance and jump to http:3g.sina.com.cn.The XSLT grammer of advancement function is embodied as:
<xsl:if?test=″starts-with(//card/onevent/@type,′onenterforward′)and//card/onevent/go/@href″>
<meta?http-equiv=″refresh″>
<xsl:attribute?name=″content″>
<xsl:value-of?select=″concat(1,′;url=′,//card/onevent/go/@href)″/>
</xsl:attribute>
</meta>
</xsl:if>
1206: gateway device is expressed the implication of this element/property by program.
Judge according to 1204 and to draw in the former grammer that this element/property can not be carried out the grammatical representation of implication of equal value by the target grammer fully or when revising, can adopt this moment gateway device to express the logic implication of this element/property, promptly carry out the WML grammer alternately and control by terminal and gateway device by program.Wherein, the program that gateway device adopts can be C++, Java etc.
The forward-reverse that relates to browser with some grammer among the above-mentioned WML is the example explanation again.Onenterforward represents the redirect of advancing, and onenterbackward then is that expression retreats redirect.It is as follows to carry out the control of WML grammer by gateway device and terminal interaction:
<wml>
<card>
<onevent?type=″onenterforward″>
<go?href=″http://3g.sina.com.cn″/>
</onevent>
<onevent?type=″onenterbackward″>
<go?href=″http://wap.baidu.com″/>
</onevent>
</card>
</wml>
What this WML described is control browser forward-reverse function, from http: need forward http://wap.baidu.com to when // 3g.sina.com.cn retreats into this page.Do not control to javascript and the forward-reverse function of IE browser is open, therefore can handle by gateway device, can not carry out buffer memory by the program control IE page, gateway device then writes down this request, promptly carries out buffer memory by gateway device.When if the IE browser retreats, the IE browser can be initiated browse request again, can realize page fallback function.
The embodiment of the invention provides a kind of equipment of realizing the syntax conversion of protocol message body protocol contents, and this equipment comprises:
First judge module is used for judging whether the element/property in the former grammer of the protocol message body protocol contents of receiving is present in the target grammer;
Second judge module is used for judging whether the implication of the element/property in element/property and the target grammer in the former grammer of the protocol message body protocol contents of receiving is consistent;
The 3rd judge module is used for judging whether element/property in the former grammer of the protocol message body protocol contents of receiving exists the grammer of implication of equal value in the target grammer;
Replication module, be used for when the judged result of second judge module when being, duplicate element/property in the former grammer of protocol contents in the protocol message body of receiving to the target grammer;
Expression/modified module, be used for when the judged result of the 3rd judge module when being, use the element/property in the former grammer of protocol contents in the syntactic representation of implication of equal value in the target grammer or the protocol message body that modification is received;
Representation module, be used for when the judged result of the 3rd judge module for not the time, express the element/property in the former grammer of protocol contents in the protocol message body of receiving by logic control.
The equipment of above-mentioned realization syntax conversion is used to realize the syntax conversion between the different agreement, no matter adopts which kind of language to change, all can adopt the said equipment with and corresponding conversion method carry out the conversion of different agreement.
The gateway device of the embodiment of the invention is supported the method for mutually conversing of WML, HTML and XHTML, according to the conversion method between the agreement, the Web/WAP application service that the user can provide in the Internet arbitrarily by terminal accesses such as mobile phone terminal, PDA, notebook computer and desktop computers; For service provider that the WAP/WEB application service is provided and content supplier, the content of service can only be provided emphatically, thereby realize content being provided and representing separating of content, and then realize effective fusion of the Internet and communication network.In addition, the embodiment of the invention proposes the concrete grammar of two kinds of different protocol language conversion logics, makes protocol conversion become a kind of reality, rather than a kind of possibility.
There are problems such as complexity in mutual syntax conversion to the embodiment of the invention between isomery and the three big protocol suites in view of network entities such as terminal, network, application server exist, for example the mobile phone terminal model emerges in an endless stream, the network form has comprised 2G, 2.5G and 3G, and continue evolution; Unit have 36 in WML 1.3 agreements, the attribute number is approximately 2~3 times of element, the embodiment of the invention proposes to programme by xsl file based on the XSLT technology, corresponding transformation rule and response message content modification can pass through the XSL syntactic representation, need not large scale programming, can dispose fast and the response demand, and can be along with the evolution synchronized development of WML and XHTML; In addition, the embodiment of the invention adopts the XSLT technology to carry out the grammer mapping in to the processing procedure of response message content, and the operation of the dom tree of unconventional java or C language can improve efficient, flexibility and the extensibility of conversion.
" reception " speech in the embodiment of the invention can be understood as and initiatively obtains from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
The embodiment of the invention can realize that corresponding software can be stored in the storage medium that can read, for example in the hard disk of computer, CD or the floppy disk by software.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (19)

1. the method for a network interconnection is characterized in that, described method comprises:
Receive the browse request message that user terminal sends, obtain the user terminal identifying information, described browse request message is sent to the webserver according to described browse request message;
Receive the response message that the described webserver sends, comprise described user terminal requests browsed content in the described response message, obtain the response message content identification information according to described response message;
Obtain preset conversion rule according to described user terminal identifying information, described response message content identification information; According to described preset conversion rule described response message is carried out the content conversion;
Response message after the conversion is returned described user terminal.
2. method according to claim 1 is characterized in that, described described browse request is sent to comprises before the webserver:
Show for the request door when described browse request, then directly return the information of portal website to user terminal; Correspondingly,
When described browse request is that non-door is showed, then described browse request is sent to and the corresponding webserver of described browse request message.
3. method according to claim 1 is characterized in that, described according to described preset conversion rule described response message is carried out further comprising before the content conversion content of described response message is carried out format verification;
Pass through when described format verification, the content of described response message is changed according to described preset conversion rule;
Do not pass through when described format verification, the content of described response message is repaired, according to preset conversion rule the content of described response message is changed again.
4. method according to claim 1 is characterized in that described preset conversion rule comprises condition, operation and converted contents;
Described condition comprises the content of user profile, end message, the network information and response message;
Described operation comprises allowing to change and not allowing to be changed;
Described converted contents comprises source protocol type, target protocol type, the module that will abandon and element and the module that will ignore and the element of needs conversion in transfer process in transfer process.
5. method according to claim 1 is characterized in that, by expanding based on the CSS transfer language content of described response message is changed.
6. method according to claim 1 is characterized in that, described obtaining according to described user terminal identifying information, described response message content identification information also comprises before the preset conversion rule:
According to described user terminal identifying information and described response message content identification information, judge whether user terminal supports the agreement in the response message content, be then directly to send described response message to described user terminal;
Otherwise obtain corresponding transformation rule according to described terminal identification information, response message content identification information, described response message is carried out the content conversion, the response message after the conversion is returned described user terminal according to the transformation rule that obtains.
7. according to the described method of claim 1 to 6, it is characterized in that, describedly described response message is carried out content conversion comprise:
Determine the source protocol and the target protocol of conversion according to described preset conversion rule; The content that abandons according to needs in the described transformation rule abandons described response message; According to the content that needs in the described transformation rule are ignored the content of Transformational Grammar is filtered; According to the Transformational Grammar after filtering source protocol is carried out syntax conversion again.
8. the method for a network interconnection is characterized in that, described method comprises:
Receive the upload request message that user terminal sends, comprise information and user terminal information that described user terminal is wanted uploaded content, the purpose webserver in the described upload request message;
Obtain the user terminal identifying information according to described user terminal information;
Webserver information according to described user terminal identifying information and preservation is in advance obtained preset conversion rule;
According to described preset conversion rule the described content of uploading is carried out the content conversion;
The content of uploading after will changing according to the information of the described purpose webserver is sent to the webserver.
9. method according to claim 8 is characterized in that, describedly described upload request message is carried out content conversion comprises:
Determine the source protocol and the target protocol of conversion according to described preset conversion rule; The content that abandons according to needs in the described transformation rule abandons described upload request message; According to the content that needs in the described transformation rule are ignored the content of Transformational Grammar is filtered; According to the Transformational Grammar after filtering source protocol is carried out syntax conversion again.
10. the method for a network interconnection is characterized in that, described method comprises:
Receive the service propelling request message that the webserver sends, comprise content, user terminal information and webserver information that the described webserver pushes to user terminal in the described service propelling request message;
Obtain the user terminal identifying information according to described user terminal information;
Obtain preset conversion rule according to described webserver information and described user terminal identifying information;
Carry out the content conversion according to the content that described preset conversion rule pushes to user terminal the described webserver;
Propelling movement content after the conversion is sent to described user terminal.
11. method according to claim 10 is characterized in that, the described content that the described webserver is pushed to user terminal is carried out the content conversion and is comprised:
Determine the source protocol and the target protocol of conversion according to described preset conversion rule; The content that abandons according to needs in the described transformation rule abandons described service propelling request message content; According to the content that needs in the described transformation rule are ignored the content of Transformational Grammar is filtered; According to the Transformational Grammar after filtering source protocol is carried out syntax conversion again.
12. a gateway device is characterized in that, described equipment comprises:
Hypertext transfer protocol server service HTTP Server Service module receives the browse request message that user terminal sends, and obtains the user terminal identifying information according to described browse request message;
HTML (Hypertext Markup Language) client service HTTP Client Service module, be used for described browse request message is sent to the webserver, and receive the response message that the described webserver sends, comprise described user terminal requests browsed content in the described response message; Obtain the response message content identification information according to described response message;
Policy service Policy Service module is used for obtaining preset conversion rule according to described user terminal identifying information, described response message content identification information;
Transformation Service Transform Service module, the preset conversion rule that is used for obtaining according to described Policy Service module is carried out the content conversion to described response message;
Described HTTP Server Service module also is used for and will returns described user terminal by the response message after the described Transform Service module converts.
13. equipment according to claim 12 is characterized in that, described Transform Service module comprises:
The protocol format authentication unit is used for the content of described response message is carried out format verification;
Message content is repaired the unit, does not pass through when described format verification, and the content of described response message is repaired;
Conversion unit of protocol is used for according to preset conversion rule the content of described response message being changed.
14. equipment according to claim 13 is characterized in that, described conversion unit of protocol specifically is used for:
Determine the source protocol and the target protocol of conversion according to described transformation rule; The content that abandons according to needs in the described transformation rule abandons described response message; According to the content that needs in the described transformation rule are ignored the content of Transformational Grammar is filtered; According to the Transformational Grammar after filtering source protocol is carried out syntax conversion again.
15. a gateway device is characterized in that, described equipment comprises:
Second hypertext transfer protocol server service HTTP Server Service module, be used to receive the upload request message that user terminal sends, comprise information and user terminal information that described user terminal is wanted uploaded content, the purpose webserver in the described upload request message; And obtain the user terminal identifying information according to described user terminal information;
The second policy service Policy Service module is used for obtaining preset conversion rule according to the webserver information of described user terminal identifying information and preservation in advance;
The second Transformation Service Transform Service module is used for according to described preset conversion rule the described content of uploading being carried out the content conversion;
The second HTML (Hypertext Markup Language) client service HTTP Client Service module, the content of uploading after being used for will changing according to the information of the described purpose webserver is sent to the webserver.
16. a gateway device is characterized in that, described equipment comprises:
The 3rd HTML (Hypertext Markup Language) client service HTTP Client Service module, be used to receive the service propelling request message that the webserver sends, comprise content, user terminal information and webserver information that the described webserver pushes to user terminal in the described service propelling request message; Obtain the user terminal identifying information according to described user terminal information;
The 3rd policy service Policy Service module is used for obtaining preset conversion rule according to described webserver information and described user terminal identifying information;
The 3rd Transformation Service Transform Service module is used for carrying out the content conversion according to the content that described preset conversion rule pushes to user terminal the described webserver;
The 3rd hypertext transfer protocol server service HTTP Server Service module is used for the propelling movement content after the conversion is sent to described user terminal.
17. a system is characterized in that, described system comprises:
Gateway device is used to receive browse request message or the upload request message that user terminal sends; Obtain the user terminal identifying information according to described browse request message or described user terminal information;
Also be used to receive the response message of webserver transmission or the service propelling request message that the webserver sends; Obtain the response message content identification information or obtain webserver information according to described response message according to described service propelling request message;
Obtain preset conversion rule according to described user terminal identifying information, described response message content identification information or webserver information;
According to described preset conversion rule the business of described response message or the propelling movement of the described webserver or the content web-servers of described user terminal uploads are carried out the content conversion, the correspondence as a result after the conversion is returned the described user terminal or the described webserver;
The webserver is used for to the response message of described gateway device transmission corresponding to described browse request, or receives described user terminal by described gateway device uploaded content, or initiatively sends the service propelling request message to described user terminal.
18. a method that realizes the syntax conversion of protocol contents in the protocol message body is characterized in that, described method comprises:
Whether the element/property in the protocol message body that judgement is received in the former grammer of protocol contents is present in the target grammer, whether the implication that is the element/property in element/property and the described target grammer of then judging in the described former grammer is consistent, otherwise judges whether element/property in the former grammer of protocol contents in the described protocol message body exists the grammer of implication of equal value in described target grammer;
When the judged result of the implication of element/property in the described former grammer of described judgement and the element/property in the described target grammer for being, then duplicate element/property in the former grammer of protocol contents in the described protocol message body to described target grammer, otherwise judge whether element/property in the former grammer of protocol contents in the described protocol message body exists the grammer of implication of equal value in described target grammer;
Whether the element/property in the described former grammer of judging protocol contents in the described protocol message body exists the judged result of grammer of implication of equal value for being in described target grammer, then use the syntactic representation of implication of equal value in the described target grammer or revise element/property in the former grammer of protocol contents in the described protocol message body, otherwise express the implication of the element/property in the former grammer of protocol contents in the described protocol message body by program.
19. an equipment of realizing the syntax conversion of protocol contents in the protocol message body is characterized in that, described equipment comprises:
First judge module is used for judging whether the element/property in the former grammer of the protocol message body protocol contents of receiving is present in the target grammer;
Second judge module is used for judging whether the implication of the element/property in element/property and the described target grammer in the former grammer of described protocol message body protocol contents is consistent;
The 3rd judge module is used for judging whether element/property in the former grammer of described protocol message body protocol contents exists the grammer of implication of equal value in described target grammer;
Replication module, be used for when the judged result of described second judge module when being, duplicate element/property in the former grammer of protocol contents in the described protocol message body to described target grammer;
Expression/modified module, be used for when the judged result of described the 3rd judge module when being, use the syntactic representation of implication of equal value in the described target grammer or revise element/property in the former grammer of described protocol message body protocol contents;
Representation module, be used for when the judged result of described the 3rd judge module for not the time, express the implication of the element/property in the former grammer of described protocol message body protocol contents by program.
CN200810188274.2A 2008-12-23 2008-12-23 Network interconnection method, gateway facility and system Pending CN101764767A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200810188274.2A CN101764767A (en) 2008-12-23 2008-12-23 Network interconnection method, gateway facility and system
PCT/CN2009/075732 WO2010072128A1 (en) 2008-12-23 2009-12-18 Method, gateway device and system for network interconnection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810188274.2A CN101764767A (en) 2008-12-23 2008-12-23 Network interconnection method, gateway facility and system

Publications (1)

Publication Number Publication Date
CN101764767A true CN101764767A (en) 2010-06-30

Family

ID=42286894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810188274.2A Pending CN101764767A (en) 2008-12-23 2008-12-23 Network interconnection method, gateway facility and system

Country Status (2)

Country Link
CN (1) CN101764767A (en)
WO (1) WO2010072128A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710558A (en) * 2012-05-21 2012-10-03 中兴通讯股份有限公司 Interface display method and system of home gateway applied to multiple display types
CN103347056A (en) * 2013-06-19 2013-10-09 百度在线网络技术(北京)有限公司 Webpage access method, system and server of mobile terminal
CN103686628A (en) * 2012-09-17 2014-03-26 中国移动通信集团公司 Information pushing method, system, network equipment, and mobile terminal
CN104093077A (en) * 2013-10-29 2014-10-08 腾讯科技(深圳)有限公司 Multi terminal interconnection method, device and system
WO2015085571A1 (en) * 2013-12-13 2015-06-18 Nokia Technologies Oy Method and apparatus for provisioning an operational subscription
CN104948173A (en) * 2014-03-25 2015-09-30 中国石油化工股份有限公司 Fracturing field data long-distance real-time monitoring method and system
CN106161478A (en) * 2016-09-19 2016-11-23 成都知道创宇信息技术有限公司 Accurate attack recognition method based on the change of http response head
CN108228680A (en) * 2016-12-22 2018-06-29 广州市动景计算机科技有限公司 The page is anti-to kidnap method, apparatus and client terminal
CN108494671A (en) * 2018-03-19 2018-09-04 珠海格力电器股份有限公司 A kind of gateway device
CN108769017A (en) * 2018-05-29 2018-11-06 杭州字符串科技有限公司 A kind of data communications method and device
CN110661787A (en) * 2019-09-04 2020-01-07 苏宁云计算有限公司 Method and device for capturing Http redirection state code and computer equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11127215A (en) * 1997-10-23 1999-05-11 Fujitsu Ltd Communication controller and storage medium stored with communication control program
CN1592270A (en) * 2003-08-26 2005-03-09 华为技术有限公司 Method and device for realizing multi-protocol conversion between intelligent network and external platforn
CN1960409A (en) * 2006-09-25 2007-05-09 郭枭业 Method for browsing content on WEB or RSS network site through mobile phone

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710558A (en) * 2012-05-21 2012-10-03 中兴通讯股份有限公司 Interface display method and system of home gateway applied to multiple display types
WO2013174080A1 (en) * 2012-05-21 2013-11-28 中兴通讯股份有限公司 Interface display method and system of home gateway applicable to multiple display types
CN102710558B (en) * 2012-05-21 2015-01-28 中兴通讯股份有限公司 Interface display method and system of home gateway applied to multiple display types
CN103686628A (en) * 2012-09-17 2014-03-26 中国移动通信集团公司 Information pushing method, system, network equipment, and mobile terminal
CN103347056A (en) * 2013-06-19 2013-10-09 百度在线网络技术(北京)有限公司 Webpage access method, system and server of mobile terminal
CN103347056B (en) * 2013-06-19 2016-12-28 百度在线网络技术(北京)有限公司 The Web access method of mobile terminal, system and server
CN104093077B (en) * 2013-10-29 2016-05-04 腾讯科技(深圳)有限公司 Method, Apparatus and system that multiple terminals is interconnected
CN104093077A (en) * 2013-10-29 2014-10-08 腾讯科技(深圳)有限公司 Multi terminal interconnection method, device and system
WO2015085571A1 (en) * 2013-12-13 2015-06-18 Nokia Technologies Oy Method and apparatus for provisioning an operational subscription
CN104948173A (en) * 2014-03-25 2015-09-30 中国石油化工股份有限公司 Fracturing field data long-distance real-time monitoring method and system
CN106161478A (en) * 2016-09-19 2016-11-23 成都知道创宇信息技术有限公司 Accurate attack recognition method based on the change of http response head
CN106161478B (en) * 2016-09-19 2019-02-19 成都知道创宇信息技术有限公司 Accurate attack recognition method based on the variation of http response head
CN108228680A (en) * 2016-12-22 2018-06-29 广州市动景计算机科技有限公司 The page is anti-to kidnap method, apparatus and client terminal
CN108494671A (en) * 2018-03-19 2018-09-04 珠海格力电器股份有限公司 A kind of gateway device
CN108769017A (en) * 2018-05-29 2018-11-06 杭州字符串科技有限公司 A kind of data communications method and device
CN108769017B (en) * 2018-05-29 2022-01-11 杭州字符串科技有限公司 Data communication method and device
CN110661787A (en) * 2019-09-04 2020-01-07 苏宁云计算有限公司 Method and device for capturing Http redirection state code and computer equipment

Also Published As

Publication number Publication date
WO2010072128A1 (en) 2010-07-01

Similar Documents

Publication Publication Date Title
CN101764767A (en) Network interconnection method, gateway facility and system
Laakko et al. Adapting web content to mobile user agents
US7587667B2 (en) Techniques for streaming validation-based XML processing directions
CA2368089C (en) Providing clients with services that retrieve data from data sources that do not necessarily support the format required by the clients
US6487566B1 (en) Transforming documents using pattern matching and a replacement language
KR100461019B1 (en) web contents transcoding system and method for small display devices
CN101231636B (en) Convenient information search method, system and an input method system
US7346598B2 (en) Schemaless dataflow within an XML storage solution
CN100353733C (en) RSS message interactive processing method based on XML file
CN102184266A (en) Method for automatically generating dynamic wireless application protocol (WAP) website for separation of page from data
CN101583072B (en) Middleware product for realizing Mobile Internet and method thereof
US20040133635A1 (en) Transformation of web description documents
CN101500002A (en) Fusion publishing method and apparatus oriented to Web content
CN103383687A (en) Page processing method and device
KR100456022B1 (en) An XML-based method of supplying Web-pages and its system for non-PC information terminals
CN103389972A (en) Method and device for obtaining text based on really simple syndication (RSS)
US20010056497A1 (en) Apparatus and method of providing instant information service for various devices
Lemlouma et al. Content adaptation and generation principles for heterogeneous clients
JP4308448B2 (en) Content generation according to the output device
KR100453224B1 (en) Apparatus and method for editing a numerical formula by using wire/wireless internet
Butler Using capability classes to classify and match CC/PP and UAProf profiles
Schaefer et al. RDL/TT-A Description Language for the Profile-Dependent Transcoding of XML Documents
Qingshan Study of a content oriented web architectural model
Chen et al. Content Adaptation For Context-Aware Service.
Cao et al. Machine Tool Distributed Cooperative Design System Based on Extended MVC-Based Web Application Framework and XML Interoperable Information Model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100630