aquitted-mind
aquitted-mind

Reputation: 303

Disabling access to wsdl file in Axis Service Listing (listing services from wsdl's)

The listing of all deployed Services can be disabled by setting 'disableServiceList' to true in Axis; which is used in AxisServlet.java -> reportAvailableServices() .

However, is there a way to disable access to the wsdls ?

Upvotes: 1

Views: 2531

Answers (2)

Josef Marianek
Josef Marianek

Reputation: 25

You can disable service listing in URL (?wsdl) in axis2.xml configuration file:

<!--
The exposeServiceMetadata parameter decides whether the metadata (WSDL, schema, policy) of
the services deployed on Axis2 should be visible when ?wsdl, ?wsdl2, ?xsd, ?policy requests
are received.
This parameter can be defined in the axis2.xml file, in which case this will be applicable
globally, or in the services.xml files, in which case, it will be applicable to the
Service groups and/or services, depending on the level at which the parameter is declared.
This value of this parameter defaults to true.
-->
<parameter name="exposeServiceMetadata">false</parameter>

Upvotes: 0

shivaspk
shivaspk

Reputation: 610

There are few ways to do it. One of the way is to write a Filter for handling "wsdl"

http://www.coderanch.com/t/224470/Web-Services/java/Disable-wsdl-url-Axis#1054987

Upvotes: 1

Related Questions