You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nathan Hook <ho...@hotmail.com> on 2007/10/11 18:38:42 UTC
[Axis2] Stopping display of WSDL
Is there a way to stop Axis2 from displaying a WSDL when a request is made to a service with the ?wsdl ending?
E.g.:
http:///xxx.com/services/buysomething?wsdl
I've looked for a way to do this, but I'm afraid that I'm looking in the wrong places.
Any friendly push in the right direction is appreciated.
Thank you for your time.
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Stopping display of WSDL
Posted by Amila Suriarachchi <am...@gmail.com>.
On 10/11/07, Nathan Hook <ho...@hotmail.com> wrote:
>
>
> Is there a way to stop Axis2 from displaying a WSDL when a request is made
> to a service with the ?wsdl ending?
why you want to do this. if you do not show your wsdl how other can access
your service?
you can add a servelt filter to filt the reqeusts to the axis2 and send
nothing if it ends with the ?wsdl.
Amila.
E.g.:
>
> http:///xxx.com/services/buysomething?wsdl
>
> I've looked for a way to do this, but I'm afraid that I'm looking in the
> wrong places.
>
> Any friendly push in the right direction is appreciated.
>
> Thank you for your time.
> _________________________________________________________________
> Boo!Scare away worms, viruses and so much more! Try Windows Live OneCare!
>
> http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
RE: [Axis2] Stopping display of WSDL
Posted by Nadir Amra <am...@us.ibm.com>.
I would suggest you open a JIRA for an enhancement. I think we should be
returning an error without the message, too.
Nadir K. Amra
Nathan Hook <ho...@hotmail.com> wrote on 10/12/2007 12:22:43 PM:
>
> Thank you for the reply.
>
> The suggestion worked but not quite as I was hoping. We received
> the following message when we followed your suggestion:
>
> Unable to generate WSDL 1.1 for this serviceIf you wish Axis2 to
> automatically generate the WSDL 1.1, then please +set
> useOriginalwsdl as false in your services.xml
>
> I am hoping that there might be a way to either return nothing or
> even better yet, return a 404 message.
>
> Any suggestions?
>
> Thank you for your time.
>
>
> ________________________________
> Date: Fri, 12 Oct 2007 08:30:23 +0530
> From: upulg.dev@gmail.com
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] Stopping display of WSDL
>
> Hi,
>
> One way of doing this is to add "useOriginalwsdl" parameter "true"
> to the service definition in services.xml and not giving a wsdl file
> in META-INF.
>
> test.Test
> true
>
> Hope this helps.
>
> Upul
>
>
> On 10/11/07, Nathan Hook <ho...@hotmail.com> wrote:
>
> Is there a way to stop Axis2 from displaying a WSDL when a request
> is made to a service with the ?wsdl ending?
>
> E.g.:
>
> http:///xxx.com/services/buysomething?wsdl
>
> I've looked for a way to do this, but I'm afraid that I'm looking in
> the wrong places.
>
> Any friendly push in the right direction is appreciated.
>
> Thank you for your time.
> _________________________________________________________________
> Boo!Scare away worms, viruses and so much more! Try Windows Live
OneCare!
> http://onecare.live.com/standard/en-us/purchase/trial.aspx?
> s_cid=wl_hotmailnews
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> _________________________________________________________________
> Windows Live Hotmail and Microsoft Office Outlook ? together at
> last. Get it now.
> http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?
> pid=CL100626971033
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: [Axis2] Stopping display of WSDL
Posted by Nathan Hook <ho...@hotmail.com>.
Thank you for the reply.
The suggestion worked but not quite as I was hoping. We received the following message when we followed your suggestion:
Unable to generate WSDL 1.1 for this serviceIf you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml
I am hoping that there might be a way to either return nothing or even better yet, return a 404 message.
Any suggestions?
Thank you for your time.
________________________________
Date: Fri, 12 Oct 2007 08:30:23 +0530
From: upulg.dev@gmail.com
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Stopping display of WSDL
Hi,
One way of doing this is to add "useOriginalwsdl" parameter "true" to the service definition in services.xml and not giving a wsdl file in META-INF.
test.Test
true
Hope this helps.
Upul
On 10/11/07, Nathan Hook <ho...@hotmail.com> wrote:
Is there a way to stop Axis2 from displaying a WSDL when a request is made to a service with the ?wsdl ending?
E.g.:
http:///xxx.com/services/buysomething?wsdl
I've looked for a way to do this, but I'm afraid that I'm looking in the wrong places.
Any friendly push in the right direction is appreciated.
Thank you for your time.
_________________________________________________________________
Boo!Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Stopping display of WSDL
Posted by Upul Godage <up...@gmail.com>.
Hi,
One way of doing this is to add "useOriginalwsdl" parameter "true" to the
service definition in services.xml and not giving a wsdl file in META-INF.
<parameter name="ServiceClass">test.Test</parameter>
<parameter name="useOriginalwsdl">true</parameter>
Hope this helps.
Upul
On 10/11/07, Nathan Hook <ho...@hotmail.com> wrote:
>
>
> Is there a way to stop Axis2 from displaying a WSDL when a request is made
> to a service with the ?wsdl ending?
>
> E.g.:
>
> http:///xxx.com/services/buysomething?wsdl
>
> I've looked for a way to do this, but I'm afraid that I'm looking in the
> wrong places.
>
> Any friendly push in the right direction is appreciated.
>
> Thank you for your time.
> _________________________________________________________________
> Boo!Scare away worms, viruses and so much more! Try Windows Live OneCare!
>
> http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>