whoops! sorry about that. It is:

 "-Daxis.ClientConfigFile=pathtofile"

For remote deployment in a jar, put the clientwsdd in the jar and load the
system prop in the main client class like:

System.setProperty("axis.ClientConfigFile", "pathtofilerelativetorootofjar"
);

Allan






                                                                                       
                                                             
                    "Blumenkrantz,                                                     
                                                             
                    Jason"                    To:     "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>                                       
                    <Jason.Blumenkrant        cc:                                      
                                                             
                    [EMAIL PROTECTED]>                Subject:     RE: Adding Client Handlers  
                                                             
                                                                                       
                                                             
                    04/19/2002 01:55                                                   
                                                             
                    PM                                                                 
                                                             
                    Please respond to                                                  
                                                             
                    axis-user                                                          
                                                             
                                                                                       
                                                             
                                                                                       
                                                             




Thanks for the help Allen.
That almost solves my problem. Two things. First, what is the system
property that needs to be set? Simply setting -Dconfig.wsdd doesn't seem to
do the trick. Secondly, I'm distributing my client in a jar file that is
being redistributed, and for simplicity sake would like to embed the wsdd
file as a resource in the jar file and have it loaded from there. Is this
possible in any way?
Thanks again
-Jason

-----Original Message-----
From: Allen J. Sherer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Adding Client Handlers



You need to specify the handler in a client specific .wsdd file and
reference this file when you start the client.

Here is an example of the client wsdd file:



<?xml version="1.0" encoding="UTF-8"?>
<deployment
    xmlns="http://xml.apache.org/axis/wsdd/";
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

 <!-- The GlobalConfiguration element is used by the axis client. -->
 <globalConfiguration>
    <requestFlow>
        <handler type="java:com.whatever.YourHandler"/>
    </requestFlow>
    <responseFlow>
        <handler type="java:com.whatever.YourHandler"/>
    </responseFlow>
 </globalConfiguration>

 <transport name="http"
        pivot="java:org.apache.axis.transport.http.HTTPSender"/>
 <transport name="local"
        pivot="java:org.apache.axis.transport.local.LocalSender"/>
</deployment>




and then specify this file as a system property when you start the client
using '-D' as follows:

java   -Dpathtoyourfile  com.whatever.whatever.YourClient

You can also set the system property in your client's main...

Hope this helps
Allan






Reply via email to