diff options
Diffstat (limited to 'spss.server/src')
-rw-r--r-- | spss.server/src/at/gv/egovernment/moa/spss/server/service/AxisHandler.java | 15 |
1 files changed, 8 insertions, 7 deletions
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 |