From 28211a11ee4ca7905769c5d23758eeb9a63e86ab Mon Sep 17 00:00:00 2001 From: gregor Date: Fri, 7 Nov 2003 14:52:31 +0000 Subject: =?UTF-8?q?Resource-String=20f=C3=BCr=20WSDL-Location=20als=20Memb?= =?UTF-8?q?er=20ausgelagert=20(siehe=20Bug=206).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@37 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../egovernment/moa/spss/server/service/AxisHandler.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'spss.server/src/at/gv/egovernment/moa/spss') diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/service/AxisHandler.java b/spss.server/src/at/gv/egovernment/moa/spss/server/service/AxisHandler.java index 9d6b255c2..19e5aa9fa 100644 --- a/spss.server/src/at/gv/egovernment/moa/spss/server/service/AxisHandler.java +++ b/spss.server/src/at/gv/egovernment/moa/spss/server/service/AxisHandler.java @@ -43,12 +43,15 @@ import at.gv.egovernment.moa.spss.util.MessageProvider; */ public class AxisHandler extends BasicHandler { + /** The resource names of the messages to load. */ + private static final String MOA_SPSS_WSDL_RESOURCE_ = "/resources/wsdl/MOA-SPSS-1.1.wsdl"; + /** The property name for accessing the HTTP request. */ - private static final String REQUEST_PROPERTY = - HTTPConstants.MC_HTTP_SERVLETREQUEST; + private static final String REQUEST_PROPERTY = HTTPConstants.MC_HTTP_SERVLETREQUEST; + /** The property name for accessing the X509 client certificate chain. */ - private static final String X509_CERTIFICATE_PROPERTY = - "javax.servlet.request.X509Certificate"; + private static final String X509_CERTIFICATE_PROPERTY = "javax.servlet.request.X509Certificate"; + /** The property name for accessing the SOAP action header. */ private static final String SOAP_ACTION_HEADER = "soapaction"; @@ -206,10 +209,8 @@ public class AxisHandler extends BasicHandler { public void generateWSDL(MessageContext msgContext) throws AxisFault { InputStream instream = null; - // Got a WSDL file in the service description, so try and read it try { - String filename = "/resources/wsdl/MOA-SP-SS-1.0-20020829.wsdl"; - msgContext.getService().getServiceDescription().getWSDLFile(); + String filename = MOA_SPSS_WSDL_RESOURCE_; File file = new File(filename); if (file.exists()) { //if this resolves to a file, load it -- cgit v1.2.3