axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinita Joshi -X \(vinjoshi - eTouch Systems at Cisco\)" <vinjo...@cisco.com>
Subject Sending Attachments
Date Fri, 20 Jan 2006 00:41:57 GMT
Hi,

 

We have implemented web service which sends documents over. For certain
document types (word, excel, pdf) a temporary file like Axis56789axis is
created under tomcat/bin/temp on the server side. For certain document
types (.txt, .java) such temporary files are not created. 

 

We need to delete these temp files occasionally as it takes up disk
space.

 

Is there any way if these temporary files can be deleted automatically
after the response is sent?

 

The following is our server-config.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"
xmlns:ns3="urn:com.cisco.ccw.webservices.DocumentService">

 <globalConfiguration>

  <parameter name="adminPassword" value="admin"/>

  <parameter name="attachments.Directory" value="temp"/>

  <parameter name="attachments.implementation"
value="org.apache.axis.attachments.AttachmentsImpl"/>

  <parameter name="sendXsiTypes" value="true"/>

  <parameter name="sendMultiRefs" value="true"/>

  <parameter name="sendXMLDeclaration" value="true"/>

  <parameter name="axis.sendMinimizedElements" value="true"/>

  <requestFlow>

   <handler type="java:org.apache.axis.handlers.JWSHandler">

    <parameter name="scope" value="session"/>

   </handler>

   <handler type="java:org.apache.axis.handlers.JWSHandler">

    <parameter name="scope" value="request"/>

    <parameter name="extension" value=".jwr"/>

   </handler>

  </requestFlow>

 </globalConfiguration>

 <handler name="LocalResponder"
type="java:org.apache.axis.transport.local.LocalResponder"/>

 <handler name="URLMapper"
type="java:org.apache.axis.handlers.http.URLMapper"/>

 <handler name="Authenticate"
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>

 <service name="AdminService" provider="java:MSG">

  <parameter name="allowedMethods" value="AdminService"/>

  <parameter name="enableRemoteAdmin" value="false"/>

  <parameter name="className" value="org.apache.axis.utils.Admin"/>

  <namespace>http://xml.apache.org/axis/wsdd/</namespace>

 </service>

 <service name="Version" provider="java:RPC">

  <parameter name="allowedMethods" value="getVersion"/>

  <parameter name="className" value="org.apache.axis.Version"/>

 </service>

<service name="WorkflowService" provider="java:RPC" style="rpc"
use="encoded">

      <parameter name="wsdlTargetNamespace"
value="http://webservices.ccw.cisco.com/"/>

      <parameter name="wsdlServiceElement" value="Workflow"/>

      <parameter name="wsdlServicePort" value="WorkflowService"/>

      <parameter name="className"
value="com.cisco.ccw.webservices.WorkflowBindingSkeleton"/>

      <parameter name="wsdlPortType" value="WorkflowService"/>

      <parameter name="allowedMethods" value="*"/>

</service>

 

  <service name="DocumentService" provider="java:RPC" style="rpc"
use="encoded">

      <parameter name="wsdlTargetNamespace"
value="http://webservices.ccw.cisco.com/"/>

      <parameter name="wsdlServiceElement" value="Document"/>

      <parameter name="wsdlServicePort" value="DocumentService"/>

      <parameter name="className"
value="com.cisco.ccw.webservices.DocumentBindingSkeleton"/>

      <parameter name="wsdlPortType" value="DocumentService"/>

      <parameter name="allowedMethods" value="*"/>

 

      <!--typeMapping

        xmlns:ns="http://webservices.ccw.cisco.com/xsd"

        qname="ns:genericStringArray"

        type="java:java.lang.String[]"

        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"

 
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"

        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

      /-->

             <typeMapping
deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFac
tory"

            languageSpecificType="java:javax.activation.DataHandler"
qname="ns3:DataHandler"

 
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory
" 

    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

     />

      

  </service>

 

  <!-- Services from Discussion WSDL service -->

 

  <service name="DiscussionService" provider="java:RPC" style="rpc"
use="encoded">

      <parameter name="wsdlTargetNamespace"
value="http://webservices.ccw.cisco.com/"/>

      <parameter name="wsdlServiceElement" value="Discussion"/>

      <parameter name="wsdlServicePort" value="DiscussionService"/>

      <parameter name="className"
value="com.cisco.ccw.webservices.DiscussionBindingSkeleton"/>

      <parameter name="wsdlPortType" value="DiscussionService"/>

      <parameter name="allowedMethods" value="*"/>

 

      <typeMapping

        xmlns:ns="http://webservices.ccw.cisco.com/xsd"

        qname="ns:genericStringArray"

        type="java:java.lang.String[]"

        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"

 
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"

        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

      />

  </service>

 

 <transport name="http">

  <requestFlow>

   <handler type="URLMapper"/>

   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>

  </requestFlow>

 </transport>

 <transport name="local">

  <responseFlow>

   <handler type="LocalResponder"/>

  </responseFlow>

 </transport>

</deployment>

 

Thanks,

 

Vinita

 

 

 

 


Mime
View raw message