user manual

78 BES Developers Guide
Web-enabling your CORBA server
Determining the urls for your CORBA methods
In order to make your CORBA server accessible over the internet, you need
to:
1 Decide what business operations you want to expose.
2 Provide a url for those business operations (CORBA methods).
For example, your banking company's CORBA server is implementing the
methods: debit(), credit(), and balance() and you want to expose these
business methods to users through the internet. You need to map each of the
CORBA server operations to what the user types in a browser.
Your bank company web site is http://www.bank.com.
To provide a url for each of the business operations you want to expose to the
internet users:
1 Append the web application name to the company root url.
For example:
http://www.bank.com/accounts
where accounts is the web application name.
Important By default, your web application is not made available through the web
server. In order to make it available through Apache, you must add some
information to the web application descriptor. For step-by-step instructions
on how to do so, go to the Management Console User's Guide, Using the
Deployment Descriptor Editor, Web Deploy Paths.
2 Append a name that is meaningful to users for the method in the web
application that you want to expose.
For example:
http://www.bank.com/accounts/balance
where balance is the meaningful name for the balance() method.
Implementing the ReqProcessor IDL in your CORBA server
The ReqProcessor IDL allows communication between a web server and a
CORBA server using IIOP. Once you implement the ReqProcessor IDL in your
CORBA server, http requests can be passed from your web server to your
CORBA server.
In implementing this IDL, you must expect the request url as part of the
HttpRequest and invoke the appropriate CORBA method in response to that url.
IDL Specification for ReqProcessor Interface
*/
module apache {
struct NameValue {