From e57c1b9889941288036643ca12407b9177d0a5da Mon Sep 17 00:00:00 2001 From: hatRiot Date: Sun, 11 May 2014 11:40:37 -0600 Subject: [PATCH] Axis2 - Support for 1.2 and 1.3 --- src/module/invoke_payload.py | 2 +- src/platform/axis2/deployers/service_upload.py | 2 +- src/platform/axis2/fingerprints/AX12.py | 7 +++++++ src/platform/axis2/fingerprints/AX13.py | 7 +++++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/platform/axis2/fingerprints/AX12.py create mode 100644 src/platform/axis2/fingerprints/AX13.py diff --git a/src/module/invoke_payload.py b/src/module/invoke_payload.py index 378d967..a3faabf 100644 --- a/src/module/invoke_payload.py +++ b/src/module/invoke_payload.py @@ -131,7 +131,7 @@ def invoke_axis2(fingerengine, fingerprint, deployer): fingerengine.options.ip, fingerprint.port, dfile) - if fingerprint.version in ['1.4', '1.5']: + if fingerprint.version not in ['1.6']: # versions < 1.6 require an explicit invocation of run url += '/run' diff --git a/src/platform/axis2/deployers/service_upload.py b/src/platform/axis2/deployers/service_upload.py index 5f1a8cd..17b5634 100644 --- a/src/platform/axis2/deployers/service_upload.py +++ b/src/platform/axis2/deployers/service_upload.py @@ -7,7 +7,7 @@ title = AINTERFACES.DSR -versions = ['1.4', '1.5', '1.6'] +versions = ['1.2', '1.3', '1.4', '1.5', '1.6'] def deploy(fingerengine, fingerprint): """ Upload a service via the administrative interface """ diff --git a/src/platform/axis2/fingerprints/AX12.py b/src/platform/axis2/fingerprints/AX12.py new file mode 100644 index 0000000..4ad1a37 --- /dev/null +++ b/src/platform/axis2/fingerprints/AX12.py @@ -0,0 +1,7 @@ +from src.platform.axis2.interfaces import DefaultServer + +class FPrint(DefaultServer): + + def __init__(self): + super(FPrint, self).__init__() + self.version = '1.2' diff --git a/src/platform/axis2/fingerprints/AX13.py b/src/platform/axis2/fingerprints/AX13.py new file mode 100644 index 0000000..8b80f6c --- /dev/null +++ b/src/platform/axis2/fingerprints/AX13.py @@ -0,0 +1,7 @@ +from src.platform.axis2.interfaces import DefaultServer + +class FPrint(DefaultServer): + + def __init__(self): + super(FPrint, self).__init__() + self.version = '1.3'