Usually, you can access the WSDL of a service by appending ?wsdl to
the endpoint url and end up with something like this:
http://localhost:8080/myapp/ServiceName?wsdl

However, if you add the disable-address-updates init-param to your
CXFServlet in web.xml like this:


    <servlet>
        <servlet-name>CXFServlet</servlet-name>
        <display-name>CXF Servlet</display-name>
        
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
        <init-param>
            <param-name>disable-address-updates</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

Then you're no longer able to access the WSDL file at the address above.

Is this correct behaviour? I'de rather like to be able to access the
WSDL regardless of the presence of this init-param.



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

Reply via email to