Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpGetOperationFormAction.java')
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpGetOperationFormAction.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpGetOperationFormAction.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpGetOperationFormAction.java
new file mode 100644
index 000000000..d069e4312
--- /dev/null
+++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpGetOperationFormAction.java
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright (c) 2002, 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.wst.ws.internal.explorer.platform.wsdl.actions;
+
+import java.io.IOException;
+import java.net.URLConnection;
+
+import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
+import org.eclipse.wst.ws.internal.explorer.platform.perspective.MessageQueue;
+import org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective;
+import org.eclipse.wst.ws.internal.parser.discovery.NetUtils;
+
+public class InvokeWSDLHttpGetOperationFormAction extends InvokeWSDLHttpOperationFormAction
+{
+ public InvokeWSDLHttpGetOperationFormAction(Controller controller)
+ {
+ super(controller);
+ }
+
+ public boolean run()
+ {
+ WSDLPerspective wsdlPerspective = controller_.getWSDLPerspective();
+ MessageQueue messageQueue = wsdlPerspective.getMessageQueue();
+ StringBuffer endPoint = new StringBuffer(getEndPoint());
+ endPoint.append('?');
+ addParameters(endPoint);
+ String endPointString = endPoint.toString();
+ boolean result = false;
+ try
+ {
+ URLConnection conn = NetUtils.getURLConnection(endPointString);
+ if (conn != null)
+ {
+ recordHttpResponse(conn,messageQueue);
+ wsdlPerspective.setOperationNode(getSelectedNavigatorNode());
+ result = true;
+ }
+ else
+ throw new IOException(wsdlPerspective.getMessage("MSG_ERROR_UNABLE_TO_CONNECT",endPointString));
+ }
+ catch (IOException e)
+ {
+ handleUnexpectedException(wsdlPerspective,messageQueue,"IOException",e);
+ }
+ return result;
+ }
+}

Back to the top