Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to avoid 'Publish Web Service' Page in the Web Service Wizard?(WTP Web Service Wizard Question)
How to avoid 'Publish Web Service' Page in the Web Service Wizard? [message #484109] Fri, 04 September 2009 10:44 Go to next message
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
I am using WTP Web Service Wizard, in which:

> I added my custom Web Service type using the extension point: org.eclipse.jst.ws.consumption.ui.wsImpl which added two entries to the Web Service Type combo (as in the attachment): Bottom Up My Custom Web Service and Top Down My Custom Web Service

> Using the extension point : org.eclipse.wst.command.env.ui.widgetRegistry I mapped a Widget Factory (MyCustomWidgetFactory) with a Command (MyCustomCommand). for the Bottom Up My Custom Web Service scenario.

> The factory MyCustomWidgetFactory Serves 3 pages to the wizard and then returns null from the getNextNamedWidget() method.

> After all the pages are served by the factory, one more page 'Publish Web Service' is added to the Wizard automatically, which enables the Next button on the last page I added using the factory.

> The MyCustomCommand will be executed in two cases:


  1. On FInish of the Web Service Wizard
  2. When Next is pressed on the last page returned by the MyCustomWidgetFactory.


> I need to generate few artifacts on the Finish of the wizard. But, since one more extra page (Publish Web Service Page) is being added to the wizard , my command is executed when Next is pressed on my last page.

> If user clicks Cancel on the Publish Web Service Page, I need to Undo the artifact generation using the same command's undo() method, which includes deleting newly generated artifacts and un-modifying existing files, which is cumbersome.

> If I can execute the command on Finish of the Web Service Wizard or if I can disable the Publish Web Service page from being added to the Wizard, my problem will be solved.


Q1) Is there any option to disable 'Publish Web Service' Page from being added to the wizard?

or

Q2) Can the command be executed on the Finish of the Web Service Wizard?


> For Web Service Client, no pages are added at the end of the wizard, so my command will be executed on the Finish of the Wizard. No issues even if user cancels the wizard.

Please help me out as I am blocked because of this limitation (behavior).

Thanks in anticipation,
Tilak
Re: How to avoid 'Publish Web Service' Page in the Web Service Wizard? [message #484719 is a reply to message #484109] Tue, 08 September 2009 21:15 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark Hutchinson
Messages: 53
Registered: July 2009
Member
Hi Tilak,

There's a check box on the first page of the wizard that says "Publish
Web Service". I would expect that if this is unchecked then the publish
page should never come up. However, I just tried this out and this
doesn't seem to be the case.

I found an old bug open for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=121887

You can add your comments there, or vote for that bug to be fixed.
(You're also welcome to try and fix it :) )

Thanks

Tilak wrote:
> I am using WTP Web Service Wizard, in which:
>
>> I added my custom Web Service type using the extension point:
>> org.eclipse.jst.ws.consumption.ui.wsImpl which added two entries to
>> the Web Service Type combo (as in the attachment): Bottom Up My Custom
>> Web Service and Top Down My Custom Web Service
>
>> Using the extension point :
>> org.eclipse.wst.command.env.ui.widgetRegistry I mapped a Widget
>> Factory (MyCustomWidgetFactory) with a Command (MyCustomCommand). for
>> the Bottom Up My Custom Web Service scenario.
>
>> The factory MyCustomWidgetFactory Serves 3 pages to the wizard and
>> then returns null from the getNextNamedWidget() method.
>
>> After all the pages are served by the factory, one more page 'Publish
>> Web Service' is added to the Wizard automatically, which enables the
>> Next button on the last page I added using the factory.
>
>> The MyCustomCommand will be executed in two cases:
>
>
> On FInish of the Web Service Wizard
> When Next is pressed on the last page returned by the
> MyCustomWidgetFactory.
>
>
>> I need to generate few artifacts on the Finish of the wizard. But,
>> since one more extra page (Publish Web Service Page) is being added to
>> the wizard , my command is executed when Next is pressed on my last page.
>
>> If user clicks Cancel on the Publish Web Service Page, I need to Undo
>> the artifact generation using the same command's undo() method, which
>> includes deleting newly generated artifacts and un-modifying existing
>> files, which is cumbersome.
>
>> If I can execute the command on Finish of the Web Service Wizard or if
>> I can disable the Publish Web Service page from being added to the
>> Wizard, my problem will be solved.
>
>
> Q1) Is there any option to disable 'Publish Web Service' Page from being
> added to the wizard?
>
> or
>
> Q2) Can the command be executed on the Finish of the Web Service Wizard?
>
>> For Web Service Client, no pages are added at the end of the wizard,
>> so my command will be executed on the Finish of the Wizard. No issues
>> even if user cancels the wizard.
>
> Please help me out as I am blocked because of this limitation (behavior).
>
> Thanks in anticipation,
> Tilak
Re: How to avoid 'Publish Web Service' Page in the Web Service Wizard? [message #487247 is a reply to message #484109] Tue, 22 September 2009 15:17 Go to previous message
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
Thanks for the reply, Mark! I voted foe the bug in bugzilla.

I have one more problem.

On the first page of the Web Service Wizard, there is a hyperlink "Service project". On clicking this, it will show up a dialog with all the Projects in the Workspace.

Now if I select another project, it also creates an EAR Project. I dont need to need this.

Please help me avoid the creation of this EAR project for corresponding project in the workspace.

And I want to filter the projects shown in this Project Selection dialog based on some Facet. Can I do that?

Thanks,
Tilak
Previous Topic:Error when parsing wsdk with extn caps WSDL
Next Topic:Struts 2.1 Minimum Jars
Goto Forum:
  


Current Time: Fri Oct 24 12:51:26 GMT 2014

Powered by FUDForum. Page generated in 0.01846 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software