rendered paste bodypublic static String getMatrixChunk(String sessionID, int elements) throws MalformedURLException, ServiceException, RemoteException { Call call = getStandardCall("getMatrixChunk"); call.addParameter("op1", XMLType.XSD_STRING, ParameterMode.IN ); call.addParameter("op2", XMLType.XSD_INT, ParameterMode.IN ); call.setReturnType(XMLType.XSD_BASE64 ); call.setEncodingStyle(Constants.URI_SOAP12_ENC); return (String) call.invoke( new Object [] { sessionID, new Integer(elements) });}private static Call getStandardCall(String methodName) throws ServiceException, MalformedURLException { Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(new URL(END_POINT)); call.setOperationName(methodName); return call;}