Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 199626 - Web Service Wizard Framework needs to tell extenders if they create a server
Summary: Web Service Wizard Framework needs to tell extenders if they create a server
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 2.0.1 M201   Edit
Assignee: Kathy Chan CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 14:57 EDT by Yen Lu CLA
Modified: 2008-04-28 21:02 EDT (History)
1 user (show)

See Also:


Attachments
patch (9.78 KB, patch)
2007-08-15 15:28 EDT, Kathy Chan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yen Lu CLA 2007-08-10 14:57:23 EDT
Build ID: WTP 2.0.1

Steps To Reproduce:
1) Start with a blank workspace.
2) Create an installed runtime to a local server.
3) Go through the Web Service wizard to create and start a Web service or client.

The server will be created for you. 

More information:
The WTP Web Service Wizard Framework has the capability to create a server. However, it uses the WTP create server API which is insufficient for our embedded server. Consequently, we need to know inside our extension whether or not the WTP framework created the server as well as the IServer instance (or some way to find it).

This is needed for 2.0.1.
Comment 1 Kathy Chan CLA 2007-08-10 16:13:13 EDT
I'll look into what can be done in WTP 2.0.1 timeframe.
Comment 2 Kathy Chan CLA 2007-08-15 15:28:53 EDT
Created attachment 76152 [details]
patch
Comment 3 Kathy Chan CLA 2007-08-15 15:32:50 EDT
Two methods are added to WebServiceInfo and WebServiceClientInfo to tell the extender whether the framework had created the server or not:

	/**
	 * @return Indicated whether the framework had created 
	 * the server instance referenced by getServerInstanceId
	 */
	public boolean isServerCreated() {
		return serverCreated;
	}
	
	/**
	 * @param serverCreated True if the framework had created 
	 * the server instance referenced by getServerInstanceId
	 */
	public void setServerCreated(boolean serverCreated) {
		this.serverCreated = serverCreated;
	}
Comment 4 Kathy Chan CLA 2007-08-15 15:50:14 EDT
Patch committed to HEAD.  Patch released to R2_0_maintenance as v200708151945
and to HEAD as v200708151947.
Comment 5 Kathy Chan CLA 2007-09-11 13:36:28 EDT
This defect has been in RESOLVE state for some time.  Please verify it with the latest driver.  WTP 2.0.1 RC1 is available at:

http://download.eclipse.org/webtools/downloads/drops/R2.0/M-2.0.1RC1-20070907070540/
Comment 6 Kathy Chan CLA 2008-02-28 14:12:07 EST
Please verify the defect you originated with a recent WTP driver which could be found in:

http://download.eclipse.org/webtools/downloads/

If defects in resolved state is not verified within a couple of weeks, the development team might verify and close the defect on the originator's behalf.  Thank you for your attention!

Comment 7 Kathy Chan CLA 2008-04-28 21:02:19 EDT
Closing on behalf of Yen.