I just ran a test and everything worked as expected.
Code:
<int-ws:inbound-gateway id="proxy" request-channel="toOutbound"/>
<int:channel id="toOutbound" />
<int-ws:outbound-gateway
request-channel="toOutbound"
uri="http://localhost:18080/ws-inbound-gateway/echoservice" />
To publish the wsdl from the proxied service on the proxy, download the wsdl, fix up the locationURI to point to the proxy, put it on the classpath, and add this bean to the servlet context...
Code:
<ws:static-wsdl id="thewebservice" location="classpath:my.wsdl"/>
It's then available as
Code:
http://.../thewebservice.wsdl
HTH