If you set the disable-address-updates , you also need to set the
base-address like http://localhost:8080/myapp
Since CXF servlet will not update the endpoint address with the request url,
you need to specify the base-address to build up a real accessible address
for the endpoint.

Willem.
 

Christian Vest Hansen wrote:
> 
> 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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/disable-address-updates-breaks-ServiceName-wsdl-url-tf4862292.html#a13931696
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to