Davide, In server-config.wsdd, inside your service definition, put <wsdlFile>/secure.wsdl</wsdlFile> Or <wsdlFile>C:\apache-tomcat-5.5.23\webapps\axis\WEB-INF\classes\secure.ws dl</wsdlFile>
Where the my secure.wsdl has jusy "<wsdl/>" in it. E.g. in my server-config.wsdd I have: ... <service name="TestWebService" provider="java:RPC" style="document" use="literal" wsdlFile="C:\apache-tomcat-5.5.23\webapps\axis\WEB-INF\classes\secure.ws dl"> <requestFlow> <handler name="myhandler" type="java:com.bofa.crme.tws.service.MyHandler"/> </requestFlow> <responseFlow> <handler name="myhandler" type="java:com.bofa.crme.tws.service.MyHandler"/> </responseFlow> <parameter name="allowedMethods" value="*"/> <parameter name="typeMappingVersion" value="1.2"/> <parameter name="wsdlPortType" value="TestWebService"/> <parameter name="className" value="com.bofa.crme.tws.service.TestWebServiceSoapBindingSkeleton"/> <parameter name="wsdlServicePort" value="TestWebService"/> <parameter name="schemaQualified" value="http://tws.crme.bofa.com"/> <parameter name="wsdlTargetNamespace" value="http://service.tws.crme.bofa.com"/> <parameter name="wsdlServiceElement" value="TestWebServiceService"/> <wsdlFile>/secure.wsdl</wsdlFile> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:SubType2Response" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.SubType2Response" xmlns:ns1="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns2:RequestFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.RequestFault" xmlns:ns2="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns3:BaseResponse" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.BaseResponse" xmlns:ns3="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns4:SubType1Request" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.SubType1Request" xmlns:ns4="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns5:ResponseFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.ResponseFault" xmlns:ns5="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns6:SubType1Response" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.SubType1Response" xmlns:ns6="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns7:SubType2Request" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.SubType2Request" xmlns:ns7="http://tws.crme.bofa.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns8:BaseRequest" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.bofa.crme.tws.BaseRequest" xmlns:ns8="http://tws.crme.bofa.com"/> </service> ... The restart your container to pick up the new server-config.wsdd deployment file. -jeff -----Original Message----- From: Davide Caruso [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 8:44 AM To: axis-user Subject: Stop wsdl autogeneration Hi, i'm trying to stop axis to send the wsdl file to anyone who requests it. I've edited the .wsdd file adding the parameter <parameter name="wsdlFile" value="/my/class/mywsdl.wsdl"/> and i've added to the classpath mywsdl.wsdl file that is an empty file with only the tags <wsdl></wsdl> . When i request the wsdl file i see always the wsdl generating from axis. I want axis to stop this autogeneration for a purpose of security. Where i go wrong? I'm using Axis 1.4 Tia Best regards. Davide Caruso [EMAIL PROTECTED] 2007-10-30 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
