You need to edit the web.xml for the soap.war and add the following to 
eachservlet (messagerouter and rpcrouter)

<init-param>
  <param-name>ConfigFile</param-name
  <param-value>soap.xml</param-value> (path from root of webapp to file)
</init-param>

Then you have to create a soap.xml file in the root of the webapp like 
the following

<soapServer>
  <configManager value="org.apache.soap.server.XMLConfigManager">
    <option name="filename" value="(path to and name of file that will 
hold your deployment descriptors, deployed-services.xml"/>
  </configManager>
</soapServer>

Then you need to create the file that holds all of you deployment 
descriptors it is an xml file and looks like this

<deployedservices>

<!-- this is an examples deployment for a service -->
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment";
            id="urn:routeService" type="message">
  <isd:provider type="java"
               scope="Application"
               methods="routeService">
   <isd:java class="net.more.servlets.schema.RouteService" static="false"/>
  </isd:provider>

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

</deployedservices>


Yong Chen wrote:

>  
> 
> Thanks Raja,
> 
>  
> 
> I can do it via admin, but what I really want is to put it in some 
> configuration file so I don't have to manually do it (even for only 
> once), this way the deployment of my software would be easier since I 
> don't have to ask user to do (deploy) it after the software installation.
> 
>  
> 
> thanks
> 
> Yong Chen
> 
>     -----Original Message-----
>     From: Raja Gangavarapu [mailto:[EMAIL PROTECTED]]
>     Sent: Wednesday, August 29, 2001 3:07 PM
>     To: '[EMAIL PROTECTED]'
>     Subject: RE: pre-load service
>     
>     
>     
>     Hi Chen
>      You need to use the admin console to register your service first 
>     time.
>      You can get to it using http://localhost:8080/soap/admin/index.html
>     
>     
>     
>     Hope this helps
>     
>     Raja
>     
>     
>     
>     -----Original Message-----
>     From: Yong Chen [mailto:[EMAIL PROTECTED]]
>     Sent: Wednesday, August 29, 2001 3:00 PM
>     To: '[EMAIL PROTECTED]'
>     Subject: RE: pre-load service
>     
>     
>     
>     But how about the very first time? can it also be automatic (or 
>     pre-loaded
>     or configured?)
>     
>     thanks
>     Yong Chen
>     
>     
>     -----Original Message-----
>     From: Richard Boehme [mailto:[EMAIL PROTECTED]]
>     Sent: Wednesday, August 29, 2001 2:23 PM
>     To: '[EMAIL PROTECTED]'
>     Subject: Re: pre-load service
>     
>     
>     Apache-SOAP should do that automatically; once a service is 
>     deployed, it's
>     re-deployed automatically when the server comes back up.
>     
>     --Richard
>     
>     
>     On Wed, 29 Aug 2001, Yong Chen wrote:
>     
>      >
>      > Hi,
>      >
>      > Is there any way I can pre-load some services such as 
>     specifying them in
>      > some config file so when the Apache soap server ( actually 
>     should be
>     either
>      > web server or servlet engine) starts up, these services are loaded
>      > automatically and available?
>      >
>      >
>      >
>      > thanks
>      > Yong Chen
>      >
>     

Reply via email to