Updated Branches: refs/heads/ode-1.3.6.x baa67d531 -> 0e2df88f2
fixing ODE-998, thanks to Michael McEniry for the patch. Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/0e2df88f Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/0e2df88f Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/0e2df88f Branch: refs/heads/ode-1.3.6.x Commit: 0e2df88f2c763092519411fe77a581a2434860da Parents: baa67d5 Author: Tammo van Lessen <[email protected]> Authored: Wed Sep 18 22:52:19 2013 +0200 Committer: Tammo van Lessen <[email protected]> Committed: Wed Sep 18 22:52:19 2013 +0200 ---------------------------------------------------------------------- axis2-war/src/main/webapp/fileupload.jsp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/0e2df88f/axis2-war/src/main/webapp/fileupload.jsp ---------------------------------------------------------------------- diff --git a/axis2-war/src/main/webapp/fileupload.jsp b/axis2-war/src/main/webapp/fileupload.jsp index 44dcdac..f919f88 100644 --- a/axis2-war/src/main/webapp/fileupload.jsp +++ b/axis2-war/src/main/webapp/fileupload.jsp @@ -3,6 +3,7 @@ <%@ page import="java.io.File" %> <%@ page import="java.lang.String" %> <%@ page import="java.io.InputStream" %> +<%@ page import="java.net.URL" %> <%@ page import="org.apache.commons.codec.binary.Base64" %> <%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%> <%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%> @@ -80,8 +81,9 @@ if (!isMultipart) { opts.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); opts.setProperty(Constants.Configuration.HTTP_METHOD, Constants.Configuration.HTTP_METHOD_POST); - opts.setTo(new EndpointReference("http://localhost:8080/ode/processes/DeploymentService")); - + URL requestURL = new URL(request.getRequestURL().toString()); + URL endpointURL = new URL(requestURL, "processes/DeploymentService"); + opts.setTo(new EndpointReference(endpointURL.toString())); OMElement payload = null; OMFactory omFactory = OMAbstractFactory.getOMFactory(); OMNamespace ns = omFactory.createOMNamespace("http://www.apache.org/ode/pmapi","p");
