Hi all,

I have the wsdd for the client side deployment.
---------------------------------------------------------------------------------------------------------------
<deployment xmlns="http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="scope" value="session"/>
<parameter name="className" value="net.interfacemgmt.eTranscript.AxisClient.WSSClientHandler"/>
<parameter name="keyStoreFile" value="c:\\etranscript\\MyTestCertificate"/>
<parameter name="keyStoreType" value="JCEKS"/>
<parameter name="keyStorePassword" value="myKeyStorePass"/>
<parameter name="keyEntryAlias" value="myTestCertificate"/>
<parameter name="keyEntryPassword" value="myKeyPass"/>
<parameter name="trustStoreFile" value="c:\\etranscript\\ca.ks"/>
<parameter name="trustStoreType" value="JCEKS"/>
<parameter name="trustStorePassword" value="changeit"/>
</handler>
</requestFlow>
<responseFlow>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="scope" value="session"/>
<parameter name="className" value="net.interfacemgmt.eTranscript.AxisClient.WSSClientHandler"/>
<parameter name="keyStoreFile" value="c:\\etranscript\\MyTestCertificate"/>
<parameter name="keyStoreType" value="JCEKS"/>
<parameter name="keyStorePassword" value="myKeyStorePass"/>
<parameter name="keyEntryAlias" value="myTestCertificate"/>
<parameter name="keyEntryPassword" value="myKeyPass"/>
<parameter name="trustStoreFile" value="c:\\etranscript\\ca.ks"/>
<parameter name="trustStoreType" value="JCEKS"/>
<parameter name="trustStorePassword" value="changeit"/>
</handler>
</responseFlow>
</globalConfiguration>
</deployment>
---------------------------------------------------------------------------------------------------------------
I'm using the code to deploy the wsdd.


EngineConfiguration config = new FileProvider("client_deploy.wsdd");
ETranscriptServiceService locator = new ETranscriptServiceServiceLocator(config);
---------------------------------------------------------------------------------------------------------------



Now, I want to add one parameter to the <requestflow> , how to do it in the java program?


Thanks,
Yixing Ma



----- Original Message ----- From: "Roslan Amir" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 16, 2005 7:08 PM
Subject: Re: Newbie question



Hi,

It's easier if you use Ant. Assume you have already run the Ant task
axis-wsdl2java to create the stub/skeleton as well as the deploy.wsdd. Then you
should use org.apache.axis.client.AdminClient to deploy your Web service as
described in deploy.wsdd. Here's excerpts from my Ant build.xml:


<path id="classpath">
 <fileset dir="${axis.home}/lib">
   <include name="*.jar" />
 </fileset>
 <fileset dir="${other.lib.dir}">
   <include name="activation.jar" />
   <include name="mail.jar" />
   <include name="xml-apis.jar" />
   <include name="xercesImpl.jar" />
 </fileset>
</path>
...
<taskdef resource="axis-tasks.properties" classpathref="classpath" />
...
<target name="deploy">
 <java classname="org.apache.axis.client.AdminClient"
       classpathref="classpath">
   <arg value="-lhttp://localhost:8080/axis/services/AdminService"; />
   <arg value="${wsdd.dir}/deploy.wsdd" />
 </java>
</target>

Make sure the Axis web app is installed and running on your app server or Tomcat
before running this task. Run Ant with the target "deploy".


You shouldn't get any error. Point your browser to http://localhost:8080/axis/
and use the List link to check that your Web service is deployed.


Roslan Amir

Serge wrote:
Hi there!

I am newbie in Axis. I need to write simple server and
simple client. In further it will be more complex, but now
I just want it to work. :)

I have written service and described it in wsdd file. I
added AxisServlet and mapping to it in my web deployment
descriptor. But I can't force it to work. :(

Axis says, that there is no service by URL I request it.
I tried to deploy service using AdminClient but it had no
effect, may be because I used it incorrectly. Client says,
that service has been deployed, but server still can't find
it.
Can anyone write me step-by-step, how do I deploy my
service (may be from servlet or a listener - last is
preferred) or point to concrete Wiki page or to thread in
mailing list archive? I didn't find such sample in Axis
bundle, there is only sample how to use JWS. :(

Thanks in advance.


----------------------------------------------------------------
This mail sent through IMP: https://webmail.xybase.com



Reply via email to