at.knowcenter.wag.egov.egiz.sig.connectors.moa
Class MOASoapConnection

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.sig.connectors.moa.MOASoapConnection

public final class MOASoapConnection
extends Object

Author:
wprinz

Field Summary
static String SERVICE_SIGN
          MOA siganture creation mode
static String SERVICE_VERIFY
          MOA siganture verification mode
 
Constructor Summary
MOASoapConnection()
           
 
Method Summary
static Properties connectMOA(String requestString, String serviceMode, String endpointURL)
          This method connects the moa server getting the requestString, the given serviseMode and the endpointUrl.
static Properties doPostRequestMultipart(String url, String serviceMode, String request, SignatureData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_VERIFY

public static final String SERVICE_VERIFY
MOA siganture verification mode

See Also:
Constant Field Values

SERVICE_SIGN

public static final String SERVICE_SIGN
MOA siganture creation mode

See Also:
Constant Field Values
Constructor Detail

MOASoapConnection

public MOASoapConnection()
Method Detail

connectMOA

public static Properties connectMOA(String requestString,
                                    String serviceMode,
                                    String endpointURL)
                             throws WebException
This method connects the moa server getting the requestString, the given serviseMode and the endpointUrl. The requestString is the envelope of the SOAP Message send and recieve by the AXIS module. The Response SOAP message of the MOA server is parsed by AXIS and the message envelope is send back to the calling method.

Parameters:
requestString - the request string (XML) to send.
serviceMode - the mode which connect to MOA
endpointURL - the URL which the MOA server is running
Returns:
the response string (XML) of the MOA server
Throws:
WebException

doPostRequestMultipart

public static Properties doPostRequestMultipart(String url,
                                                String serviceMode,
                                                String request,
                                                SignatureData data)
                                         throws org.apache.commons.httpclient.HttpException,
                                                IOException
Throws:
org.apache.commons.httpclient.HttpException
IOException


Copyright © 2006-2010. All Rights Reserved.