From d67075dcf3790ed6858987c4100fcda2e5a097a5 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 14 Mar 2012 12:53:16 +0000 Subject: Remove jsessionid from WSDL URL (if present) git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1033 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BKUApplet/src/main/java/at/gv/egiz/bku/online') diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java index 9511571c..4fac1d62 100644 --- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java +++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java @@ -320,6 +320,8 @@ public class BKUApplet extends JApplet { */ public STALPortType getSTALPort() throws MalformedURLException { URL wsdlURL = getURLParameter(WSDL_URL); + if (wsdlURL.toString().contains(";jsessionid=")) + wsdlURL = new URL(wsdlURL.toString().replaceAll("\\;jsessionid=[^\\?#]*", "")); log.debug("Setting STAL WSDL: {}.", wsdlURL); QName endpointName = new QName(STAL_WSDL_NS, STAL_SERVICE); STALService stal = new STALService(wsdlURL, endpointName); -- cgit v1.2.3