diff options
Diffstat (limited to 'bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command')
5 files changed, 0 insertions, 745 deletions
diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientDefaultingCommand.java b/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientDefaultingCommand.java deleted file mode 100644 index 6bc3b6d67..000000000 --- a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientDefaultingCommand.java +++ /dev/null @@ -1,266 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.ws.internal.axis.consumption.ui.command; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.jst.ws.internal.axis.consumption.core.common.JavaWSDLParameter; -import org.eclipse.jst.ws.internal.common.ResourceUtils; -import org.eclipse.jst.ws.internal.consumption.common.WSDLParserFactory; -import org.eclipse.wst.command.internal.provisional.env.core.AbstractDataModelOperation; -import org.eclipse.wst.server.core.IServer; -import org.eclipse.wst.server.core.ServerCore; -import org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser; - -/** - * - * AxisClientDefaultingCommand - * - */ -public class AxisClientDefaultingCommand extends AbstractDataModelOperation -{ - private boolean isClientScenario_ = true; - private boolean customizeMappings_ = false; - private boolean generateProxy_ = true; - private String clientRuntimeId_; - private JavaWSDLParameter javaWSDLParam_; - private IProject proxyProject_ = null; - private IProject clientProjectEAR_ = null; - private String wsdlURL_; - private boolean testProxySelected_; - private IServer clientExistingServer_; - private String clientServer_; - private boolean clientIsExistingServer_; - private String proxyProjectFolder_; - private WebServicesParser webServicesParser_; - private String moduleName_; - - public AxisClientDefaultingCommand( String moduleName ) - { - moduleName_ = moduleName; - } - - public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) - { - IStatus status = Status.OK_STATUS; - - clientExistingServer_ = getServerFromServerLabel(); -// if (clientExistingServer_ != null) { -// //TODO The following line should no longer be necessary. -// clientExistingServer_.getServerType().getId(); -// } else { -// //TODO get the factory id for the type. -// } - //javaWSDLParam - javaWSDLParam_ = new JavaWSDLParameter(); - - // proxyProjectFolber_ - - webServicesParser_ = WSDLParserFactory.getWSDLParser(); - return status; - } - - public void setClientRuntimeID(String clientRuntimeId) { - clientRuntimeId_ = clientRuntimeId; - } - - public String getClientRuntimeID() { - return this.clientRuntimeId_; - } - - /** - * @return Returns the javaWSDLParam. - */ - public JavaWSDLParameter getJavaWSDLParam() { - return javaWSDLParam_; - } - - /** - * @return Returns the clientProject. - */ - public IProject getClientProject() { - return proxyProject_; - } - - /** - * @param clientProject - * The clientProject to set. - */ - public void setClientProject(IProject clientProject) { - this.proxyProject_ = clientProject; - } - - /** - * @return Returns the clientProjectEAR. - */ - public IProject getClientProjectEAR() { - return clientProjectEAR_; - } - - /** - * @param clientProjectEAR - * The clientProjectEAR to set. - */ - public void setClientProjectEAR(IProject clientProjectEAR) { - this.clientProjectEAR_ = clientProjectEAR; - } - - /** - * @return Returns the testProxySelected. - */ - public boolean getTestProxySelected() { - return testProxySelected_; - } - - /** - * @param testProxySelected - * The testProxySelected to set. - */ - public void setTestProxySelected(boolean testProxySelected) { - this.testProxySelected_ = testProxySelected; - } - - /** - * @return Returns the wsdlURL. - */ - public String getWsdlURL() { - return wsdlURL_; - } - - /** - * @param wsdlURL - * The wsdlURL to set. - */ - public void setWsdlURL(String wsdlURL) { - this.wsdlURL_ = wsdlURL; - } - - /** - * @return Returns the clientServer. - */ - public IServer getClientExistingServer() { - return clientExistingServer_; - } - - /** - * @param clientServer - * The clientServer to set. - */ - public void setClientServer(String clientServer) { - this.clientServer_ = clientServer; - } - - /** - * @return Returns the clientIsExistingServer. - */ - public boolean isClientIsExistingServer() { - return clientIsExistingServer_; - } - - /** - * @param clientIsExistingServer - * The clientIsExistingServer to set. - */ - public void setClientIsExistingServer(boolean clientIsExistingServer) { - this.clientIsExistingServer_ = clientIsExistingServer; - } - - public boolean getCustomizeClientMappings() { - return customizeMappings_; - } - - public void setCustomizeClientMappings(boolean value) { - customizeMappings_ = value; - } - - private IServer getServerFromServerLabel() { - if (true) - // rsk revisit if (clientIsExistingServer_) - { - // Maybe this should be in WebServiceServerRuntimeTypeRegistry - { - IServer[] servers = ServerCore.getServers(); - if (servers != null && servers.length!=0) { - for (int i = 0; i < servers.length; i++) { - IServer server = (IServer) servers[i]; - if ((server.getName()).equals(clientServer_)) - return server; - } - } - } - // - } else { - //TODO create the server - } - return null; - } - /** - * @return Returns the proxyProjectFolder. - */ - public String getProxyProjectFolder() { - if (proxyProject_!=null) { - proxyProjectFolder_ = ResourceUtils.getJavaSourceLocation(proxyProject_, moduleName_ ).toString(); - } - return proxyProjectFolder_; - } - - /** - * @return Returns the webServicesParser. - */ - public WebServicesParser getWebServicesParser() { - return webServicesParser_; - } - /** - * @param webServicesParser The webServicesParser to set. - */ - public void setWebServicesParser(WebServicesParser webServicesParser) { - this.webServicesParser_ = webServicesParser; - } - /** - * @return Returns the generateProxy. - */ - public boolean getGenerateProxy() { - return generateProxy_; - } - /** - * @param generateProxy The generateProxy to set. - */ - public void setGenerateProxy(boolean generateProxy) { - this.generateProxy_ = generateProxy; - } - - /** - * @return Returns the isClientScenario_. - */ - public boolean getIsClientScenario() - { - return isClientScenario_; - } - - /** - * @param isClientScenario_ The isClientScenario_ to set. - */ - public void setIsClientScenario(boolean isClientScenario) - { - isClientScenario_ = isClientScenario; - } - - /** - * @param setEndpointMethod The setEndpointMethod to set. - */ - public String getSetEndpointMethod() - { - return "setEndpoint"; - } -} diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientInputCommand.java b/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientInputCommand.java deleted file mode 100644 index 0c463111e..000000000 --- a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientInputCommand.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.ws.internal.axis.consumption.ui.command; - - -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.wst.command.internal.provisional.env.core.AbstractDataModelOperation; -import org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser; -import org.eclipse.wst.ws.internal.provisional.wsrt.IContext; -import org.eclipse.wst.ws.internal.provisional.wsrt.IWebServiceClient; - - -public class AxisClientInputCommand extends AbstractDataModelOperation { - - private IWebServiceClient wsc_; - - private String clientProject_ = null; - private String clientModule_ = null; - private String wsdlURL_; - private String clientServer_; - private WebServicesParser webServicesParser_; - - /** - * Default CTOR - */ - public AxisClientInputCommand() { - } - - public AxisClientInputCommand(IWebServiceClient wsc, IContext context, String project, String module) { - wsc_ = wsc; - clientProject_ = project; - clientModule_ = module; - } - - public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) - { - wsdlURL_ = wsc_.getWebServiceClientInfo().getWsdlURL(); - clientServer_ = wsc_.getWebServiceClientInfo().getServerInstanceId(); - - return Status.OK_STATUS; - } - - public String getClientServer() { - return clientServer_; - } - - public String getClientProject() { - return clientProject_; - } - - public WebServicesParser getWebServicesParser() { - return webServicesParser_; - } - - public String getWsdlURL() { - return wsdlURL_; - } - - public String getClientModule() { - return clientModule_; - } - - -} diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientOutputCommand.java b/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientOutputCommand.java deleted file mode 100644 index 063b72d53..000000000 --- a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientOutputCommand.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.ws.internal.axis.consumption.ui.command; - - -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.wst.command.internal.provisional.env.core.AbstractDataModelOperation; -import org.eclipse.wst.ws.internal.provisional.wsrt.IContext; -import org.eclipse.wst.ws.internal.provisional.wsrt.IWebServiceClient; - - -public class AxisClientOutputCommand extends AbstractDataModelOperation { - - private IWebServiceClient wsc_; - private String proxyBean_; - - /** - * Default CTOR - */ - public AxisClientOutputCommand() { - } - - public AxisClientOutputCommand(IWebServiceClient wsc, IContext context, String module) { - wsc_ = wsc; - } - - public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) - { - wsc_.getWebServiceClientInfo().setImplURL(proxyBean_); - return Status.OK_STATUS; - } - - public void setProxyBean(String proxyBean) { - this.proxyBean_ = proxyBean; - } - - -} diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/CopyClientWSDLCommand.java b/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/CopyClientWSDLCommand.java deleted file mode 100644 index a14ce15d7..000000000 --- a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/CopyClientWSDLCommand.java +++ /dev/null @@ -1,176 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.ws.internal.axis.consumption.ui.command; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; -import java.util.Vector; -import javax.wsdl.Definition; -import javax.wsdl.Import; -import javax.wsdl.xml.WSDLWriter; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; -import org.eclipse.jst.ws.internal.plugin.WebServicePlugin; -import org.eclipse.wst.command.internal.env.common.FileResourceUtils; -import org.eclipse.wst.command.internal.provisional.env.core.AbstractDataModelOperation; -import org.eclipse.wst.command.internal.provisional.env.core.common.MessageUtils; -import org.eclipse.wst.command.internal.provisional.env.core.common.StatusUtils; -import org.eclipse.wst.command.internal.provisional.env.core.context.ResourceContext; -import org.eclipse.wst.common.environment.Environment; -import org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser; - - -/** - * - */ -public class CopyClientWSDLCommand extends AbstractDataModelOperation -{ - private String pluginId_ = "org.eclipse.jst.ws.axis.consumption.ui"; - private MessageUtils msgUtils_; - private String wsdlURL_; - private String clientWSDLPathName_; - private WebServicesParser wsParser_; - - public CopyClientWSDLCommand() - { - msgUtils_ = new MessageUtils(pluginId_ + ".plugin", this); - } - - public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) - { - Environment env = getEnvironment(); - IStatus status = Status.OK_STATUS; - Definition def = wsParser_.getWSDLDefinition(wsdlURL_); - if(def==null) - { - status = StatusUtils.errorStatus( msgUtils_.getMessage("MSG_ERROR_WSDL_NO_DEFINITION",new String[]{wsdlURL_})); - env.getStatusHandler().reportError(status); - return status; - } - IPath clientWSDLPath = new Path(clientWSDLPathName_); - IWorkspaceRoot workspaceRoot = FileResourceUtils.getWorkspaceRoot(); - status = resolveWSDL(workspaceRoot, def, clientWSDLPath, env, monitor); - return status; - } - - private IStatus resolveWSDL( - IWorkspaceRoot workspace, - Definition wsdlDef, - IPath wsdlPath, - Environment env, - IProgressMonitor monitor) { - try { - writeWSDLFile(workspace, wsdlDef, wsdlPath, env, monitor); - Map importDefs = wsdlDef.getImports(); - Set keysSet = importDefs.keySet(); - for (Iterator e = keysSet.iterator(); e.hasNext();) { - Object keyName = e.next(); - Vector vector = (Vector) importDefs.get(keyName); - for (int i = 0; i < vector.size(); i++) { - Import importDef = (Import) vector.get(i); - Definition def = importDef.getDefinition(); - String newPathString = - wsdlPath.toString().substring( - 0, - wsdlPath.toString().lastIndexOf("/") + 1); //$NON-NLS-1$ - if (isInvalidImportWSDL(importDef.getLocationURI())) { - return StatusUtils.errorStatus( msgUtils_.getMessage("MSG_ERROR_IMPORT_WSDL",new String[]{importDef.getLocationURI()})); - } - IPath newPath = - new Path(newPathString + importDef.getLocationURI()); - IStatus status = resolveWSDL(workspace, def, newPath, env, monitor); - if (status != null - && status.getSeverity() == Status.ERROR) { - return status; - } - } - } - } catch (Exception e) { - return StatusUtils.errorStatus( msgUtils_.getMessage("MSG_ERROR_WRITE_WSDL",new String[] { wsdlPath.toString() }), e); - } - return Status.OK_STATUS; - } - - private boolean isInvalidImportWSDL(String wsdlPath) { - - // relative url - if (!wsdlPath.toLowerCase().startsWith("http://")) { //$NON-NLS-1$ - - if (wsdlPath.indexOf("/") != -1) { //$NON-NLS-1$ - if (!wsdlPath.startsWith("./")) { //$NON-NLS-1$ - return true; - } - } - - } - return false; - } - - private void writeWSDLFile( - IWorkspaceRoot workspace, - Definition wsdlDef, - IPath wsdlPath, - Environment env, - IProgressMonitor monitor) - throws Exception { - - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - //WSDLFactory wsdlFactory = WSDLFactory.newInstance(); - //WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter(); - WSDLWriter wsdlWriter = (new org.eclipse.wst.wsdl.internal.impl.wsdl4j.WSDLFactoryImpl()).newWSDLWriter(); - wsdlWriter.writeWSDL(wsdlDef, baos); - byte[] b = baos.toByteArray(); - ByteArrayInputStream bais = new ByteArrayInputStream(b); - - ResourceContext context = - WebServicePlugin.getInstance().getResourceContext(); - FileResourceUtils.createFile( - context, - wsdlPath.makeAbsolute(), - bais, - monitor, - env.getStatusHandler()); - - baos.close(); - bais.close(); - - } - - /** - * @param clientWSDLPathName_ The clientWSDLPathName_ to set. - */ - public void setClientWSDLPathName(String clientWSDLPathName) - { - this.clientWSDLPathName_ = clientWSDLPathName; - } - /** - * @param wsdlURL_ The wsdlURL_ to set. - */ - public void setWsdlURL(String wsdlURL) - { - this.wsdlURL_ = wsdlURL; - } - /** - * @param wsParser_ The wsParser_ to set. - */ - public void setWsParser(WebServicesParser wsParser) - { - this.wsParser_ = wsParser; - } -} diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/DefaultsForClientJavaWSDLCommand.java b/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/DefaultsForClientJavaWSDLCommand.java deleted file mode 100644 index f7c45aa6c..000000000 --- a/bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/DefaultsForClientJavaWSDLCommand.java +++ /dev/null @@ -1,179 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.ws.internal.axis.consumption.ui.command; - - -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.jdt.core.IJavaProject; -import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jst.ws.internal.axis.consumption.core.common.JavaWSDLParameter; -import org.eclipse.jst.ws.internal.axis.consumption.ui.util.PlatformUtils; -import org.eclipse.jst.ws.internal.common.ResourceUtils; -import org.eclipse.wst.command.internal.provisional.env.core.AbstractDataModelOperation; -import org.eclipse.wst.command.internal.provisional.env.core.common.MessageUtils; -import org.eclipse.wst.command.internal.provisional.env.core.common.StatusUtils; -import org.eclipse.wst.common.componentcore.ModuleCoreNature; -import org.eclipse.wst.common.environment.Environment; -import org.eclipse.wst.ws.internal.datamodel.Model; - - -public class DefaultsForClientJavaWSDLCommand extends AbstractDataModelOperation { - - private JavaWSDLParameter javaWSDLParam_; - private IProject proxyProject_; - private String WSDLServiceURL_; - private String WSDLServicePathname_; - private MessageUtils msgUtils_; - private MessageUtils coreMsgUtils_; - private String moduleName_; - - public DefaultsForClientJavaWSDLCommand( String moduleName ) { - String pluginId = "org.eclipse.jst.ws.axis.consumption.ui"; - msgUtils_ = new MessageUtils( pluginId + ".plugin", this ); - coreMsgUtils_ = new MessageUtils( "org.eclipse.jst.ws.axis.consumption.core.consumption", this ); - moduleName_ = moduleName; - } - - /** - * Constructor for DefaultsForClientJavaWSDLCommand. - */ - public DefaultsForClientJavaWSDLCommand( - JavaWSDLParameter javaWSDLParam, - Model model) { - //super(); - String pluginId = "org.eclipse.jst.ws.axis.consumption.ui"; - msgUtils_ = new MessageUtils( pluginId + ".plugin", this ); - coreMsgUtils_ = new MessageUtils( "org.eclipse.jst.ws.axis.consumption.core.consumption", this ); - this.javaWSDLParam_ = javaWSDLParam; - } - - public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) - { - Environment environment = getEnvironment(); - IStatus status; - if (javaWSDLParam_ == null) { - status = StatusUtils.errorStatus( - coreMsgUtils_.getMessage( - "MSG_ERROR_JAVA_WSDL_PARAM_NOT_SET")); - environment.getStatusHandler().reportError(status); - return status; - } - - javaWSDLParam_.setMetaInfOnly(false); - javaWSDLParam_.setServerSide(JavaWSDLParameter.SERVER_SIDE_NONE); - - ModuleCoreNature mn = ModuleCoreNature.getModuleCoreNature(proxyProject_); - if (mn!=null) - { - IPath webModuleServerRoot = ResourceUtils.getJavaSourceLocation(proxyProject_, moduleName_ ); - //String output = PlatformUtils.getPlatformURL(webModuleServerRoot); - String output = ResourceUtils.findResource(webModuleServerRoot).getLocation().toString(); -// String output = ResourceUtils.getWorkspaceRoot().getFolder(webModuleServerRoot).getLocation().toString(); - javaWSDLParam_.setJavaOutput(output); - - - IFolder webModuleContainer = ResourceUtils.getWebComponentServerRoot(proxyProject_, moduleName_); - if (webModuleContainer !=null) - { - IPath webModulePath = webModuleContainer.getFullPath(); - //output = PlatformUtils.getPlatformURL(webModulePath); - IResource res = ResourceUtils.findResource(webModulePath); - if (res!=null){ - output = res.getLocation().toString(); - } - javaWSDLParam_.setOutput(output); - } - } - else - { - //Check if it's a plain old Java project - IJavaProject javaProject = null; - - javaProject = JavaCore.create(proxyProject_); - if (javaProject != null) - { - IPath webModuleServerRoot = ResourceUtils.getJavaSourceLocation(proxyProject_); - String output = ResourceUtils.findResource(webModuleServerRoot).getLocation().toString(); - javaWSDLParam_.setJavaOutput(output); - javaWSDLParam_.setOutput(output); - } - else - { - //Not familiar with this kind of project - status = StatusUtils.errorStatus( msgUtils_.getMessage("MSG_WARN_NO_JAVA_NATURE")); - environment.getStatusHandler().reportError(status); - return status; - - } - } - - - - if (WSDLServicePathname_ == null) { - - if (WSDLServiceURL_ == null) { - status = StatusUtils.errorStatus( - msgUtils_.getMessage( - "MSG_ERROR_WSDL_LOCATION_NOT_SET")); - environment.getStatusHandler().reportError(status); - return status; - } - } else { - WSDLServiceURL_ = PlatformUtils.getFileFromPlatform(WSDLServicePathname_); - } - - javaWSDLParam_.setInputWsdlLocation(WSDLServiceURL_); - - return Status.OK_STATUS; - } - - /** - * Returns the javaWSDLParam. - * @return JavaWSDLParameter - */ - public JavaWSDLParameter getJavaWSDLParam() { - return javaWSDLParam_; - } - - /** - * Sets the javaWSDLParam. - * @param javaWSDLParam The javaWSDLParam to set - */ - public void setJavaWSDLParam(JavaWSDLParameter javaWSDLParam) { - this.javaWSDLParam_ = javaWSDLParam; - } - - /** - * @param proxyProject_ The proxyProject_ to set. - */ - public void setProxyProject(IProject proxyProject) { - this.proxyProject_ = proxyProject; - } - /** - * @param serviceURL_ The wSDLServiceURL_ to set. - */ - public void setWSDLServiceURL(String serviceURL) { - WSDLServiceURL_ = serviceURL; - } - /** - * @param servicePathname_ The wSDLServicePathname_ to set. - */ - public void setWSDLServicePathname(String servicePathname) { - WSDLServicePathname_ = servicePathname; - } -} |