Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to conrol the stages of the web service in the eclipse web service wizard?
How to conrol the stages of the web service in the eclipse web service wizard? [message #230842] Tue, 28 April 2009 06:55 Go to next message
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
Hi,

I am working on creating a New Web Service Wizard in eclipse.
I followed the tutorial:
http://www.eclipse.org/webtools/jst/components/ws/documents/ ContributingWebServiceRTWithUI.html
and created the web service wizard.

Now, after selecting a java bean and New> Web Services > Web Service, the
next page "Web Services" with some description (Select a service
implementation or definition and move the sliders to set the level of
service and client generation.) comes. Here, we can set the level of the
service using the slider.

Here, I want to restrict the level of the service to DEPLOYED stage, or
force it to be disabled or disable few stages.

I tried setting the WebServiceState, using
WebServiceInfo.setState(webServiceState); where I get the state from
WebServiceState.get(int) method.

Please suggest me any solution for disabling a few stages of the
webservice in the Web Service Wizard.

Thanks in anticipation,
Tilak
Re: How to conrol the stages of the web service in the eclipse web service wizard? [message #230889 is a reply to message #230842] Wed, 29 April 2009 11:47 Go to previous messageGo to next message
Keith Chong is currently offline Keith Chong
Messages: 64
Registered: July 2009
Member
Hi Tilak,

Although, there are situations where the stages are disabled, ie, the
client-side slider/stages may be disabled depending on what is selected on
the service-side, the framework does not currently support disabling of
the stages like how you describe.

If you want to pursue this further, please open a bugzilla enhancement
request.

Thanks.
Re: How to conrol the stages of the web service in the eclipse web service wizard? [message #230902 is a reply to message #230889] Thu, 30 April 2009 04:09 Go to previous messageGo to next message
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
Hi Kieth,

Thanks a lot for replying to my Question! I would request an enhancement
for the behavior ( Disabling a stage in Service Side in the Web Services
Wizard) in Bugzilla.

I think I have found the place where code modification is needed. The
class
org.eclipse.jst.ws.consumption.ui.source_1.1.4.v200901212148 .jar\org\eclipse\jst\ws\internal\consumption\ui\widgets\WebS erviceClientTypeWidget$
ScaleSelectionListener has a method widgetSelected(), where the page is
validated always by statusListener_.handleEvent(null); //validate the page

Depending on the stage we want to disable, we can invalidate page by
passing appropriate parameter to the above handleEvent() method and
providing appropriate error message ( description ) why the page is
invalidated.

Thanks Again!
Tilak
Re: How to conrol the stages of the web service in the eclipse web service wizard? [message #230945 is a reply to message #230902] Fri, 01 May 2009 11:51 Go to previous messageGo to next message
Keith Chong is currently offline Keith Chong
Messages: 64
Registered: July 2009
Member
Tilak wrote:

> Hi Kieth,

> Thanks a lot for replying to my Question! I would request an enhancement
> for the behavior ( Disabling a stage in Service Side in the Web Services
> Wizard) in Bugzilla.

> I think I have found the place where code modification is needed. The
> class
>
org.eclipse.jst.ws.consumption.ui.source_1.1.4.v200901212148 .jarorgeclipsejstwsinternalconsumptionuiwidgetsWebServiceCli entTypeWidget$
> ScaleSelectionListener has a method widgetSelected(), where the page is
> validated always by statusListener_.handleEvent(null); //validate the page

> Depending on the stage we want to disable, we can invalidate page by
> passing appropriate parameter to the above handleEvent() method and
> providing appropriate error message ( description ) why the page is
> invalidated.

> Thanks Again!
> Tilak

Tilak,

Have you opened the bugzilla yet? If not, go here:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20we bservices

Attach your fix as a patch to the bugzilla, and I'll check it out.

Thanks.
Re: How to conrol the stages of the web service in the eclipse web service wizard? [message #231019 is a reply to message #230945] Tue, 05 May 2009 02:46 Go to previous messageGo to next message
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
Hi Keith,

Sorry for the delay in my response. I did not raise a Bugzilla enhancement
request because there is a small difference in the functionality which I
need now from what I asked previously. I don't need to change the existing
behavior of Java Bean Web Service.

I need a new Web Service Type, similar to Java bean Web Service, for which
I used the extension point: "org.eclipse.jst.ws.consumption.ui.wsImpl" and
added my custom Web Service Type ( ex: MyCustom Web Service). I mentioned
the objectSelectionWidget as
org.eclipse.jst.ws.internal.consumption.ui.widgets.object.Ja vaBeanSelectionWidget.
For that I used the extension point
"org.eclipse.jst.ws.consumption.ui.objectSelectionWidget"

Since I need to control the UI components on the page, I need a class
similar to the JavaBeanSelectionWidget, where I want to control the stages
selected for the web service at the Service side.

I want to restrict my Web Service Type to Develop and Assemble stages and
I don't need Deploy stage and further stages. Since I am not interested in
Deploy stage, I don't need the "Configuration" section of the Service Side.

Please suggest me on:

How to Control the stages of the Web Service in Service Side?

Can I disable the "Server:" and "Web Service Runtime:" controls in the
"Configuration" section in Service Side?

If these features are not supported currently and if the are valid
enhancements, I will go ahead and raise a Bugzilla enhancement request.

Thanks in anticipation,
Tilak
Re: How to conrol the stages of the web service in the eclipse web service wizard? [message #232607 is a reply to message #230945] Tue, 16 June 2009 10:00 Go to previous message
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
Hi Keith,

I have raised an enhancement request in bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280447 asking Support for
disabling few stages of webservice in the service side.

Thanks,
Tilak
Previous Topic:Eclipse competibility
Next Topic:Error in launching application on Tomcat 5.5
Goto Forum:
  


Current Time: Fri Jul 25 06:41:57 EDT 2014

Powered by FUDForum. Page generated in 0.01658 seconds