Using this option will provide a full support of our platform which would integrate the stub instance with the Accounts & the Netfaults framework. It allows the clients to obtain an initialized stub with properties like the endpoint address, security property for User name Token & LTPA based authentication. These properties can be stored in user accounts. Now at runtime, the stub instance reads the properties from the accounts to invoke the Web service. This mechanism is useful when multiple clients need to share the same service interface object in the Lotus® Expeditor runtime.
InitialContext ic = new InitialContext();
//JNDI lookup for the stub instance
EchoService stub = (EchoService)ic.lookup
To be able to lookup an instance of the interface stub using JNDI, there are some requirements:
- Two extensions must be defined that provide the binding information for WSObjectFactory and the service interface and account information for the proxy
- An account must be created with information such as Account name, endpoint, authentication type, and so on
Parent topic: Creating Axis Web Services Clients: XPD622