com.konakart.ws
Class KKWebServiceSoapMgr

java.lang.Object
  extended by com.konakart.ws.KKWebServiceSoapMgr

public class KKWebServiceSoapMgr
extends java.lang.Object

For operating on KonaKart SOAP messages


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
KKWebServiceSoapMgr()
           
 
Method Summary
 void addStoreIdTag(KKWSEngIf impl, java.lang.String storeId)
          Set the storeId tag on the AXIS Stub service so that it will be included in all messages sent to the target service.
static KKException createKKAdminExceptionFromAxisFault(org.apache.axis.AxisFault af)
          Create a KKException from an AxisFault.
 java.lang.String getStoreId()
          Return the value of the storeId tag that should be in the SOAPHeader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

KKWebServiceSoapMgr

public KKWebServiceSoapMgr()
Method Detail

getStoreId

public java.lang.String getStoreId()
                            throws KKException
Return the value of the storeId tag that should be in the SOAPHeader. If the storeId is missing this returns the default storeId.

Returns:
the storeId contained in the storeId tag in the SOAPHeader
Throws:
KKException - for unexpected exceptions processing the SOAP message context

addStoreIdTag

public void addStoreIdTag(KKWSEngIf impl,
                          java.lang.String storeId)
                   throws KKException
Set the storeId tag on the AXIS Stub service so that it will be included in all messages sent to the target service.

Parameters:
impl - the AXIS Stub implementation on which we will set the SOAP Header
storeId - the store Id
Throws:
KKException

createKKAdminExceptionFromAxisFault

public static KKException createKKAdminExceptionFromAxisFault(org.apache.axis.AxisFault af)
Create a KKException from an AxisFault. We extract the KKException code from the exception message if we can find it. If present it will appear as [int] with the code being the int inside the brackets (eg. [10]).

Parameters:
af - the AxisFault
Returns:
a KKException with the code set, if found.


Copyright © 2011 DS Data Systems UK Ltd.