|
Replies:
4
-
Last Post:
Sep 18, 2009 11:06 AM
by: ramapulavarthi
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
Disabling ?WSDL
Posted:
Mar 30, 2009 4:08 AM
|
|
|
I've got a WSDL-first service and I'd like to disable the .../Service?WSDL links for a service. Or at least override the endpoint address that it contains.
I have a service and for various odd reasons the requests go through some rewriting on load balancers and the endpoint address ends up being wrong. I've got a build process that copies the WSDL into apache's static content area and that's where I'm point people at.
The problem is some people insist on going to the ?WSDL address and complain when it doesn't work quite right so I'd be perfectly happy just turning it off.
|
|
|
|
|
|
|
Re: Disabling ?WSDL
Posted:
Mar 30, 2009 2:16 PM
in response to: gcoleman
|
|
|
There is no option to turn it off. Is this servlet based endpoint? May be you can add a filter to filter out the get requests (?wsdl requests).
|
|
|
|
|
|
|
|
Re: Disabling ?WSDL
Posted:
Mar 30, 2009 7:35 PM
in response to: gcoleman
|
|
|
If request path needs changing you have no alternative beyond trying to avoid metro wsdl (maybe filter, trying to get load balancer to redirect ?wsdl, or try and rewrite the WSDL coming though (though that would be hard)). Otherwise you can try and get metro to have the correct URL:
The address in the wsdl is derived from the servlet request enviroment. Hostname and port can be statically overridden using tomcat connector attributes. Alternatively if the request path (as opposed to host/port/protocol) is not changed, you could avoid request rewriting (can still do request routing or course) at the proxy so the web service sees the true URL (via either http or ajp).
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net For additional commands, e-mail: users-help@metro.dev.java.net
|
|
|
|
|
|
|
|
Re: Disabling ?WSDL
Posted:
Sep 18, 2009 5:14 AM
in response to: Clive Brettingh...
|
|
|
Hello, I am having a similar like this only where i need to redirect the WSDL. My scenario is : My Web Service is deployed on JBoss 4.2.3 GA. The wsdl generated is : http://myserver/APIImpl?wsdl
Now my problem is that I am having some clients in .NET who are accessing the Web Service thru WSDL, but they were using MS Soap Toolkit earlier so they have wsdl like this: http://myserver/APIImpl.wsdl
Now they want the same wsdl (with . and not ?)
Kindly suggest how to redirect or filter the ? from wsdl. Thanks in advance. Kapil
|
|
|
|
|
|
|
|
Re: Disabling ?WSDL
Posted:
Sep 18, 2009 11:06 AM
in response to: kapilsinghal
|
|
|
One quick workaround could be to expose the published wsdl as a static resource APIImpl.wsdl.
|
|
|
|
|