You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by ri...@cardsetc.com on 2001/04/17 02:15:19 UTC

Initialise SOAP object from Deployment Descriptor?

Dear All,

We are successfully using SOAP with Java classes in our application.
However, we now
have a requirement where we would like to initialise the Java class NOT
just statelessly,
but with information specified in the Deployment Descriptor.

Ideally, the Deployment Descriptor would allow us to pass arguments to the
class constructor
that it calls in response to a SOAP request. However, the ability for the
Deployment
Descriptor to set some kind of global variable which the class could then
query would
be fine, too.

We had a lead in discovering this deployment descriptor in the SOAP
samples:

<?xml version="1.0"?>
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:testprovider">
  <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
                scope="Application"
                methods="create">
    <isd:java class="samples/HelloService"/>
    <isd:option key="FullHomeInterfaceName" value
="samples.HelloServiceHome" />
    <isd:option key="ContextProviderURL" value="iiop://localhost:900" />
    <isd:option key="FullContextFactoryName" value
="com.ibm.ejs.ns.jndi.CNInitialContextFactory"
/>
  </isd:provider>

<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>

Specifically, the line 'isd:option' looks interesting, however we can't
find any documentation
on it or how to query that option from within the Java class. We were
hoping something
like...

System.getProperty( "FullHomeInterfaceName" )

...but to no avail.

Either way, the basic problem still stands: can we initialize the SOAP
object with
information from the Deployment Descriptor?

Any help or advice would be much appreciated,

Richard.

--------------------------------------------------------------------------
'A $16 million Cash Injection for Smart Card Business' click below
http://www.cardsetc.com to read about Cards etc's success.
--------------------------------------------------------------------------
This e-mail is from Cards Etc Pty Ltd (ACN: 069 533 302). It may contain
privileged and confidential information. It is intended for the named
recipient(s) only. If you are not an intended recipient, please notify us
immediately by reply e-mail or by phone on +61 2 9212 7773 & delete this
e-mail from your system.
--------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org