setHeaders(); RemoteCallReturn remoteCallReturn = callSoapClient( createSoapCall(soapClientHandler.getSoapClientMethod(soapClient, method), args)); logSoapCall(remoteCallReturn); return unwrapRemoteCallReturn(remoteCallReturn);
/** * Unwraps a SOAP remote call return such that if there was an exception, it is * thrown and if it was a successful call, the return value of the SOAP call * is returned. * * @param remoteCallReturn the {@link RemoteCallReturn} to unwrap * @return the {@link RemoteCallReturn#getReturnValue()} if the call was * successful * @throws Throwable the exception captured in the * {@link RemoteCallReturn#getException()} if present */ protected Object unwrapRemoteCallReturn(RemoteCallReturn remoteCallReturn) throws Throwable { if (remoteCallReturn.getException() != null) { throw handleException(remoteCallReturn.getException()); } else { return remoteCallReturn.getReturnValue(); } } }
/** * Unwraps a SOAP remote call return such that if there was an exception, it is * thrown and if it was a successful call, the return value of the SOAP call * is returned. * * @param remoteCallReturn the {@link RemoteCallReturn} to unwrap * @return the {@link RemoteCallReturn#getReturnValue()} if the call was * successful * @throws Throwable the exception captured in the * {@link RemoteCallReturn#getException()} if present */ protected Object unwrapRemoteCallReturn(RemoteCallReturn remoteCallReturn) throws Throwable { if (remoteCallReturn.getException() != null) { throw handleException(remoteCallReturn.getException()); } else { return remoteCallReturn.getReturnValue(); } } }
setHeaders(); RemoteCallReturn remoteCallReturn = callSoapClient( createSoapCall(soapClientHandler.getSoapClientMethod(soapClient, method), args)); logSoapCall(remoteCallReturn); return unwrapRemoteCallReturn(remoteCallReturn);