The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Disabling ?WSDL

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Sep 18, 2009 11:06 AM by: ramapulavarthi Threads: [ Previous | Next ]
gcoleman

Posts: 1
Disabling ?WSDL
Posted: Mar 30, 2009 4:08 AM
 
  Click to reply to this thread Reply

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.

ramapulavarthi

Posts: 525
Re: Disabling ?WSDL
Posted: Mar 30, 2009 2:16 PM   in response to: gcoleman
 
  Click to reply to this thread Reply

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).

Clive Brettingh...
Re: Disabling ?WSDL
Posted: Mar 30, 2009 7:35 PM   in response to: gcoleman
  Click to reply to this thread Reply

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


kapilsinghal

Posts: 1
Re: Disabling ?WSDL
Posted: Sep 18, 2009 5:14 AM   in response to: Clive Brettingh...
 
  Click to reply to this thread Reply

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

ramapulavarthi

Posts: 525
Re: Disabling ?WSDL
Posted: Sep 18, 2009 11:06 AM   in response to: kapilsinghal
 
  Click to reply to this thread Reply

One quick workaround could be to expose the published wsdl as a static resource APIImpl.wsdl.




 XML java.net RSS