You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by YIXING MA <yi...@verizon.net> on 2005/05/17 18:45:45 UTC

client wsdd

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" <ro...@xybase.com>
To: <ax...@ws.apache.org>
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 


RE: running out of sockets???

Posted by Ephemeris Lappis <ep...@gmail.com>.
Are you sure the problem is the http connections ?
I remember, long time ago, a problem with sockets on windows workstation
systems (NT and 2000) which source was the limited socket numbers. If i
remember well, unlike server versions, workstation configurations limit
socket number up to 5000. In a typical case when both your server and your
client run on the same system, you can quickly consume all your accepted
numbers. If you want more, you have to change some key in the registry
(sorry, i don't remember which one). The problem comes when many connections
are open in a short time. You must also adjust the time the stack keeps the
socket in close-wait state before the number can be used again... You can
check it with a netstat or a similar tools.
I hope this can help you.


>>> -----Original Message-----
>>> From: John Windberg [mailto:jwindberg@yahoo.com]
>>> Sent: Wednesday, May 18, 2005 3:44 AM
>>> To: axis-user@ws.apache.org
>>> Subject: running out of sockets???
>>>
>>>
>>> I'm writing client code against Autodesk Vault web
>>> services which are .Net code within an IIS instance.
>>> After a series of calls I start getting "out of
>>> sockets" or "access denied" errors, which seem to be
>>> caused because IIS on this XP instance has a limited
>>> number of available connections.
>>>
>>> I'm only calling one at a time. Why would my
>>> connections not be getting closed?


running out of sockets???

Posted by John Windberg <jw...@yahoo.com>.
I'm writing client code against Autodesk Vault web
services which are .Net code within an IIS instance.
After a series of calls I start getting "out of
sockets" or "access denied" errors, which seem to be
caused because IIS on this XP instance has a limited
number of available connections.

I'm only calling one at a time. Why would my
connections not be getting closed?