org.wso2.carbon.stub.ApplicationAdminStub Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-car-deploy-plugin Show documentation
Show all versions of maven-car-deploy-plugin Show documentation
Maven plugin which deploys the generated CAR artifacts to remote/local Carbon Servers.
The newest version!
/**
* ApplicationAdminStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.1-wso2v1 Built on : Jun 24, 2011 (06:41:37 IST)
*/
package org.wso2.carbon.stub;
/*
* ApplicationAdminStub java implementation
*/
public class ApplicationAdminStub extends org.apache.axis2.client.Stub
implements ApplicationAdmin{
protected org.apache.axis2.description.AxisOperation[] _operations;
//hashmaps to keep the fault mapping
private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
private java.util.HashMap faultMessageMap = new java.util.HashMap();
private static int counter = 0;
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
}
private void populateAxisService() throws org.apache.axis2.AxisFault {
//creating the Service with a unique name
_service = new org.apache.axis2.description.AxisService("ApplicationAdmin" + getUniqueSuffix());
addAnonymousOperations();
//creating the operations
org.apache.axis2.description.AxisOperation __operation;
_operations = new org.apache.axis2.description.AxisOperation[4];
__operation = new org.apache.axis2.description.RobustOutOnlyAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org", "deleteApplication"));
_service.addOperation(__operation);
_operations[0]=__operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org", "listAllApplications"));
_service.addOperation(__operation);
_operations[1]=__operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org", "downloadCappArchive"));
_service.addOperation(__operation);
_operations[2]=__operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org", "getAppData"));
_service.addOperation(__operation);
_operations[3]=__operation;
}
//populates the faults
private void populateFaults(){
faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "deleteApplication"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "deleteApplication"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "deleteApplication"),"org.wso2.carbon.application.mgt.stub.ApplicationAdminException");
faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "listAllApplications"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "listAllApplications"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "listAllApplications"),"org.wso2.carbon.application.mgt.stub.ApplicationAdminException");
faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "downloadCappArchive"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "downloadCappArchive"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "downloadCappArchive"),"org.wso2.carbon.application.mgt.stub.ApplicationAdminException");
faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "getAppData"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "getAppData"),"org.wso2.carbon.stub.ApplicationAdminExceptionException");
faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org","ApplicationAdminException"), "getAppData"),"org.wso2.carbon.application.mgt.stub.ApplicationAdminException");
}
/**
*Constructor that takes in a configContext
*/
public ApplicationAdminStub(org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint)
throws org.apache.axis2.AxisFault {
this(configurationContext,targetEndpoint,false);
}
/**
* Constructor that takes in a configContext and useseperate listner
*/
public ApplicationAdminStub(org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint, boolean useSeparateListener)
throws org.apache.axis2.AxisFault {
//To populate AxisService
populateAxisService();
populateFaults();
_serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
_serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(
targetEndpoint));
_serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
//Set the soap version
_serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
}
/**
* Default Constructor
*/
public ApplicationAdminStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
this(configurationContext,"https://10.100.3.157:9443/services/ApplicationAdmin.ApplicationAdminHttpsSoap12Endpoint/" );
}
/**
* Default Constructor
*/
public ApplicationAdminStub() throws org.apache.axis2.AxisFault {
this("https://10.100.3.157:9443/services/ApplicationAdmin.ApplicationAdminHttpsSoap12Endpoint/" );
}
/**
* Constructor taking the target endpoint
*/
public ApplicationAdminStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
this(null,targetEndpoint);
}
/**
* Auto generated method signature
*
* @throws org.wso2.carbon.stub.ApplicationAdminExceptionException :
*/
public void deleteApplication(
java.lang.String appName17
) throws java.rmi.RemoteException
,org.wso2.carbon.stub.ApplicationAdminExceptionException
{
org.apache.axis2.context.MessageContext _messageContext = null;
try {
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
_operationClient.getOptions().setAction("urn:deleteApplication");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
org.apache.axiom.soap.SOAPEnvelope env = null;
_messageContext = new org.apache.axis2.context.MessageContext();
//Style is Doc.
org.wso2.carbon.application.mgt.stub.DeleteApplication dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
appName17,
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"deleteApplication")));
//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// create message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
_operationClient.execute(true);
}catch(org.apache.axis2.AxisFault f){
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"deleteApplication"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"deleteApplication"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex=
(java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"deleteApplication"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
throw (org.wso2.carbon.stub.ApplicationAdminExceptionException)ex;
}
throw new java.rmi.RemoteException(ex.getMessage(), ex);
}catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}
}else{
throw f;
}
}else{
throw f;
}
} finally {
if (_messageContext.getTransportOut() != null) {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
}
}
return;
}
/**
* Auto generated method signature
*
* @see org.wso2.carbon.stub.ApplicationAdmin#listAllApplications
* @param listAllApplications18
* @throws org.wso2.carbon.stub.ApplicationAdminExceptionException :
*/
public java.lang.String[] listAllApplications(
)
throws java.rmi.RemoteException
,org.wso2.carbon.stub.ApplicationAdminExceptionException{
org.apache.axis2.context.MessageContext _messageContext = null;
try{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
_operationClient.getOptions().setAction("urn:listAllApplications");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create a message context
_messageContext = new org.apache.axis2.context.MessageContext();
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env = null;
org.wso2.carbon.application.mgt.stub.ListAllApplications dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"listAllApplications")));
//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// set the message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
//execute the operation client
_operationClient.execute(true);
org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
java.lang.Object object = fromOM(
_returnEnv.getBody().getFirstElement() ,
org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse.class,
getEnvelopeNamespaces(_returnEnv));
return getListAllApplicationsResponse_return((org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse)object);
}catch(org.apache.axis2.AxisFault f){
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"listAllApplications"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"listAllApplications"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"listAllApplications"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
throw (org.wso2.carbon.stub.ApplicationAdminExceptionException)ex;
}
throw new java.rmi.RemoteException(ex.getMessage(), ex);
}catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}
}else{
throw f;
}
}else{
throw f;
}
} finally {
if (_messageContext.getTransportOut() != null) {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
}
}
}
/**
* Auto generated method signature for Asynchronous Invocations
*
* @see org.wso2.carbon.stub.ApplicationAdmin#startlistAllApplications
* @param listAllApplications18
*/
public void startlistAllApplications(
final org.wso2.carbon.stub.ApplicationAdminCallbackHandler callback)
throws java.rmi.RemoteException{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
_operationClient.getOptions().setAction("urn:listAllApplications");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env=null;
final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
//Style is Doc.
org.wso2.carbon.application.mgt.stub.ListAllApplications dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"listAllApplications")));
// adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// create message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message context to the operation client
_operationClient.addMessageContext(_messageContext);
_operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
try {
org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse.class,
getEnvelopeNamespaces(resultEnv));
callback.receiveResultlistAllApplications(
getListAllApplicationsResponse_return((org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse)object));
} catch (org.apache.axis2.AxisFault e) {
callback.receiveErrorlistAllApplications(e);
}
}
public void onError(java.lang.Exception error) {
if (error instanceof org.apache.axis2.AxisFault) {
org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"listAllApplications"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"listAllApplications"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"listAllApplications"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
callback.receiveErrorlistAllApplications((org.wso2.carbon.stub.ApplicationAdminExceptionException)ex);
return;
}
callback.receiveErrorlistAllApplications(new java.rmi.RemoteException(ex.getMessage(), ex));
} catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
} catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
} catch (org.apache.axis2.AxisFault e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorlistAllApplications(f);
}
} else {
callback.receiveErrorlistAllApplications(f);
}
} else {
callback.receiveErrorlistAllApplications(f);
}
} else {
callback.receiveErrorlistAllApplications(error);
}
}
public void onFault(org.apache.axis2.context.MessageContext faultContext) {
org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
onError(fault);
}
public void onComplete() {
try {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
} catch (org.apache.axis2.AxisFault axisFault) {
callback.receiveErrorlistAllApplications(axisFault);
}
}
});
org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
_callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
_operations[1].setMessageReceiver(
_callbackReceiver);
}
//execute the operation client
_operationClient.execute(false);
}
/**
* Auto generated method signature
*
* @see org.wso2.carbon.stub.ApplicationAdmin#downloadCappArchive
* @param downloadCappArchive21
* @throws org.wso2.carbon.stub.ApplicationAdminExceptionException :
*/
public javax.activation.DataHandler downloadCappArchive(
java.lang.String fileName22)
throws java.rmi.RemoteException
,org.wso2.carbon.stub.ApplicationAdminExceptionException{
org.apache.axis2.context.MessageContext _messageContext = null;
try{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
_operationClient.getOptions().setAction("urn:downloadCappArchive");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create a message context
_messageContext = new org.apache.axis2.context.MessageContext();
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env = null;
org.wso2.carbon.application.mgt.stub.DownloadCappArchive dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
fileName22,
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"downloadCappArchive")));
//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// set the message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
//execute the operation client
_operationClient.execute(true);
org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
java.lang.Object object = fromOM(
_returnEnv.getBody().getFirstElement() ,
org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse.class,
getEnvelopeNamespaces(_returnEnv));
return getDownloadCappArchiveResponse_return((org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse)object);
}catch(org.apache.axis2.AxisFault f){
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"downloadCappArchive"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"downloadCappArchive"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"downloadCappArchive"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
throw (org.wso2.carbon.stub.ApplicationAdminExceptionException)ex;
}
throw new java.rmi.RemoteException(ex.getMessage(), ex);
}catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}
}else{
throw f;
}
}else{
throw f;
}
} finally {
if (_messageContext.getTransportOut() != null) {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
}
}
}
/**
* Auto generated method signature for Asynchronous Invocations
*
* @see org.wso2.carbon.stub.ApplicationAdmin#startdownloadCappArchive
* @param downloadCappArchive21
*/
public void startdownloadCappArchive(
java.lang.String fileName22,
final org.wso2.carbon.stub.ApplicationAdminCallbackHandler callback)
throws java.rmi.RemoteException{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
_operationClient.getOptions().setAction("urn:downloadCappArchive");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env=null;
final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
//Style is Doc.
org.wso2.carbon.application.mgt.stub.DownloadCappArchive dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
fileName22,
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"downloadCappArchive")));
// adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// create message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message context to the operation client
_operationClient.addMessageContext(_messageContext);
_operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
try {
org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse.class,
getEnvelopeNamespaces(resultEnv));
callback.receiveResultdownloadCappArchive(
getDownloadCappArchiveResponse_return((org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse)object));
} catch (org.apache.axis2.AxisFault e) {
callback.receiveErrordownloadCappArchive(e);
}
}
public void onError(java.lang.Exception error) {
if (error instanceof org.apache.axis2.AxisFault) {
org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"downloadCappArchive"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"downloadCappArchive"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"downloadCappArchive"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
callback.receiveErrordownloadCappArchive((org.wso2.carbon.stub.ApplicationAdminExceptionException)ex);
return;
}
callback.receiveErrordownloadCappArchive(new java.rmi.RemoteException(ex.getMessage(), ex));
} catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
} catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
} catch (org.apache.axis2.AxisFault e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrordownloadCappArchive(f);
}
} else {
callback.receiveErrordownloadCappArchive(f);
}
} else {
callback.receiveErrordownloadCappArchive(f);
}
} else {
callback.receiveErrordownloadCappArchive(error);
}
}
public void onFault(org.apache.axis2.context.MessageContext faultContext) {
org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
onError(fault);
}
public void onComplete() {
try {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
} catch (org.apache.axis2.AxisFault axisFault) {
callback.receiveErrordownloadCappArchive(axisFault);
}
}
});
org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
_callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
_operations[2].setMessageReceiver(
_callbackReceiver);
}
//execute the operation client
_operationClient.execute(false);
}
/**
* Auto generated method signature
*
* @see org.wso2.carbon.stub.ApplicationAdmin#getAppData
* @param getAppData25
* @throws org.wso2.carbon.stub.ApplicationAdminExceptionException :
*/
public org.wso2.carbon.application.mgt.stub.types.carbon.ApplicationMetadata getAppData(
java.lang.String appName26)
throws java.rmi.RemoteException
,org.wso2.carbon.stub.ApplicationAdminExceptionException{
org.apache.axis2.context.MessageContext _messageContext = null;
try{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
_operationClient.getOptions().setAction("urn:getAppData");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create a message context
_messageContext = new org.apache.axis2.context.MessageContext();
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env = null;
org.wso2.carbon.application.mgt.stub.GetAppData dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
appName26,
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"getAppData")));
//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// set the message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
//execute the operation client
_operationClient.execute(true);
org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
java.lang.Object object = fromOM(
_returnEnv.getBody().getFirstElement() ,
org.wso2.carbon.application.mgt.stub.GetAppDataResponse.class,
getEnvelopeNamespaces(_returnEnv));
return getGetAppDataResponse_return((org.wso2.carbon.application.mgt.stub.GetAppDataResponse)object);
}catch(org.apache.axis2.AxisFault f){
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getAppData"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getAppData"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getAppData"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
throw (org.wso2.carbon.stub.ApplicationAdminExceptionException)ex;
}
throw new java.rmi.RemoteException(ex.getMessage(), ex);
}catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
throw f;
}
}else{
throw f;
}
}else{
throw f;
}
} finally {
if (_messageContext.getTransportOut() != null) {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
}
}
}
/**
* Auto generated method signature for Asynchronous Invocations
*
* @see org.wso2.carbon.stub.ApplicationAdmin#startgetAppData
* @param getAppData25
*/
public void startgetAppData(
java.lang.String appName26,
final org.wso2.carbon.stub.ApplicationAdminCallbackHandler callback)
throws java.rmi.RemoteException{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
_operationClient.getOptions().setAction("urn:getAppData");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env=null;
final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
//Style is Doc.
org.wso2.carbon.application.mgt.stub.GetAppData dummyWrappedType = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
appName26,
dummyWrappedType,
optimizeContent(new javax.xml.namespace.QName("http://mgt.application.carbon.wso2.org",
"getAppData")));
// adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// create message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message context to the operation client
_operationClient.addMessageContext(_messageContext);
_operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
try {
org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
org.wso2.carbon.application.mgt.stub.GetAppDataResponse.class,
getEnvelopeNamespaces(resultEnv));
callback.receiveResultgetAppData(
getGetAppDataResponse_return((org.wso2.carbon.application.mgt.stub.GetAppDataResponse)object));
} catch (org.apache.axis2.AxisFault e) {
callback.receiveErrorgetAppData(e);
}
}
public void onError(java.lang.Exception error) {
if (error instanceof org.apache.axis2.AxisFault) {
org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getAppData"))){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getAppData"));
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();
//message class
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getAppData"));
java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
new java.lang.Class[]{messageClass});
m.invoke(ex,new java.lang.Object[]{messageObject});
if (ex instanceof org.wso2.carbon.stub.ApplicationAdminExceptionException){
callback.receiveErrorgetAppData((org.wso2.carbon.stub.ApplicationAdminExceptionException)ex);
return;
}
callback.receiveErrorgetAppData(new java.rmi.RemoteException(ex.getMessage(), ex));
} catch(java.lang.ClassCastException e){
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
} catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
} catch (org.apache.axis2.AxisFault e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetAppData(f);
}
} else {
callback.receiveErrorgetAppData(f);
}
} else {
callback.receiveErrorgetAppData(f);
}
} else {
callback.receiveErrorgetAppData(error);
}
}
public void onFault(org.apache.axis2.context.MessageContext faultContext) {
org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
onError(fault);
}
public void onComplete() {
try {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
} catch (org.apache.axis2.AxisFault axisFault) {
callback.receiveErrorgetAppData(axisFault);
}
}
});
org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
_callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
_operations[3].setMessageReceiver(
_callbackReceiver);
}
//execute the operation client
_operationClient.execute(false);
}
/**
* A utility method that copies the namepaces from the SOAPEnvelope
*/
private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
java.util.Map returnMap = new java.util.HashMap();
java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
while (namespaceIterator.hasNext()) {
org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
}
return returnMap;
}
private javax.xml.namespace.QName[] opNameArray = null;
private boolean optimizeContent(javax.xml.namespace.QName opName) {
if (opNameArray == null) {
return false;
}
for (int i = 0; i < opNameArray.length; i++) {
if (opName.equals(opNameArray[i])) {
return true;
}
}
return false;
}
//https://10.100.3.157:9443/services/ApplicationAdmin.ApplicationAdminHttpsSoap12Endpoint/
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.DeleteApplication param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.DeleteApplication.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.ApplicationAdminException param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.ApplicationAdminException.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.ListAllApplications param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.ListAllApplications.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.DownloadCappArchive param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.DownloadCappArchive.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.GetAppData param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.GetAppData.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(org.wso2.carbon.application.mgt.stub.GetAppDataResponse param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wso2.carbon.application.mgt.stub.GetAppDataResponse.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory,
java.lang.String param1,
org.wso2.carbon.application.mgt.stub.DeleteApplication dummyWrappedType,
boolean optimizeContent) throws org.apache.axis2.AxisFault{
try{
org.wso2.carbon.application.mgt.stub.DeleteApplication wrappedType = new org.wso2.carbon.application.mgt.stub.DeleteApplication();
wrappedType.setAppName(param1);
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(wrappedType.getOMElement(org.wso2.carbon.application.mgt.stub.DeleteApplication.MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory,
org.wso2.carbon.application.mgt.stub.ListAllApplications dummyWrappedType,
boolean optimizeContent) throws org.apache.axis2.AxisFault{
try{
org.wso2.carbon.application.mgt.stub.ListAllApplications wrappedType = new org.wso2.carbon.application.mgt.stub.ListAllApplications();
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(wrappedType.getOMElement(org.wso2.carbon.application.mgt.stub.ListAllApplications.MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private java.lang.String[] getListAllApplicationsResponse_return(
org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse wrappedType){
return wrappedType.get_return();
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory,
java.lang.String param1,
org.wso2.carbon.application.mgt.stub.DownloadCappArchive dummyWrappedType,
boolean optimizeContent) throws org.apache.axis2.AxisFault{
try{
org.wso2.carbon.application.mgt.stub.DownloadCappArchive wrappedType = new org.wso2.carbon.application.mgt.stub.DownloadCappArchive();
wrappedType.setFileName(param1);
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(wrappedType.getOMElement(org.wso2.carbon.application.mgt.stub.DownloadCappArchive.MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private javax.activation.DataHandler getDownloadCappArchiveResponse_return(
org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse wrappedType){
return wrappedType.get_return();
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory,
java.lang.String param1,
org.wso2.carbon.application.mgt.stub.GetAppData dummyWrappedType,
boolean optimizeContent) throws org.apache.axis2.AxisFault{
try{
org.wso2.carbon.application.mgt.stub.GetAppData wrappedType = new org.wso2.carbon.application.mgt.stub.GetAppData();
wrappedType.setAppName(param1);
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(wrappedType.getOMElement(org.wso2.carbon.application.mgt.stub.GetAppData.MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private org.wso2.carbon.application.mgt.stub.types.carbon.ApplicationMetadata getGetAppDataResponse_return(
org.wso2.carbon.application.mgt.stub.GetAppDataResponse wrappedType){
return wrappedType.get_return();
}
/**
* get the default envelope
*/
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
return factory.getDefaultEnvelope();
}
private java.lang.Object fromOM(
org.apache.axiom.om.OMElement param,
java.lang.Class type,
java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{
try {
if (org.wso2.carbon.application.mgt.stub.DeleteApplication.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.DeleteApplication.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.ApplicationAdminException.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.ApplicationAdminException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.ListAllApplications.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.ListAllApplications.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.ListAllApplicationsResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.ApplicationAdminException.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.ApplicationAdminException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.DownloadCappArchive.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.DownloadCappArchive.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.DownloadCappArchiveResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.ApplicationAdminException.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.ApplicationAdminException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.GetAppData.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.GetAppData.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.GetAppDataResponse.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.GetAppDataResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (org.wso2.carbon.application.mgt.stub.ApplicationAdminException.class.equals(type)){
return org.wso2.carbon.application.mgt.stub.ApplicationAdminException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
} catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
return null;
}
}