Hi List,
I am sending this email since I have an annoying problem that I don't
manage to solve.
I have a couple of web services developed on XFire 1.2.6 to upload
and download files from a remote server. They both are configured to
use MTOM through usage of the services.xml file. I am trying to force
the UploadService to always cache files on disk so that I can reuse
the attachements without having to copy files around since they can be
pretty big. Well I manage to make everything work using annotations
but my goal is to do this in a way that allows to reconfigure the
final app right before deploy without having to rebuild it hence I
thought about using the services.xml file for this task. Problem is
that when I use the services.xml file to configure all the properties
I need, XFire simply ignores what I set for attachment-directory and
uses the local temp dir.
Here below you can find my servics.xml file, not that I completely
remove all tha annotations from the web services definitions
<beans>
<!--
-->
<!--
UploadService -->
<!--
-->
<service xmlns="http://xfire.codehaus.org/config/1.0">
<name>UploadService</name>
<namespace>http://www.ittvis.com/UploadService</namespace>
<serviceClass>com.ittvis.soap.service.UploadService</serviceClass>
<implementationClass>com.ittvis.soap.service.UploadService</implementationClass>
<!--serviceFactory>jsr181</serviceFactory-->
<properties>
<property key="mtom-enabled">true</property>
<property key="attachment-directory">c:/tmp</property>
<property key="attachment-memory-threshold">1</property>
</properties>
</service>
<!--
-->
<!-- DownloadService
-->
<!--
-->
<service xmlns="http://xfire.codehaus.org/config/1.0">
<name>DownloadService</name>
<namespace>http://www.ittvis.com/DownloadService</namespace>
<serviceClass>com.ittvis.soap.service.DownloadService</serviceClass>
<implementationClass>com.ittvis.soap.service.DownloadService</implementationClass>
<!-- serviceFactory>jsr181</serviceFactory-->
<properties>
<property key="mtom-enabled">true</property>
</properties>
</service>
</beans>
Any hints?
Thx a lot,
Simone.
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
-------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email